340023f1 |
1 | # relevant part of lighttpd configuration file |
2 | # merge with you lighttpd config |
3 | # |
4 | # use it as a base for lighttpd 1.0.0 and above |
5 | # |
6 | # $Id: lighttpd.conf,v 1.7 2004/11/03 22:26:05 weigon Exp $ |
7 | |
8 | ############ Options you really have to take care of #################### |
9 | |
10 | server.modules = ( |
11 | "mod_rewrite", |
12 | "mod_access", |
13 | "mod_auth", |
14 | "mod_setenv", |
15 | "mod_proxy", |
16 | "mod_evhost", |
17 | "mod_userdir", |
18 | "mod_cgi", |
19 | "mod_compress", |
20 | "mod_accesslog" ) |
21 | |
22 | |
23 | $HTTP["host"] =~ "^dev\.kyberia\.cz$" { |
24 | url.rewrite-once = ( |
25 | "^/robots.txt" => "/robots.txt", |
26 | "^/([_~-].*|.*\.ico|http-bind)(/?.*)" => "/$1$2", |
27 | "^/(.*)" => "/nodes.php/$1" |
28 | ) |
29 | } |
30 | |
31 | #Jabber |
32 | $HTTP["url"] =~ "^/http-bind/" { |
33 | proxy.server = ( "" => |
34 | ( "localhost" => |
35 | ( |
36 | "host" => "127.0.0.1", |
37 | "port" => 5280 |
38 | ) |
39 | ) |
40 | ) |
41 | } |
42 | |
43 | evhost.path-pattern = "/srv/http/%0/%3/" |