blob: a7a7b079a71cc150ad14eac65f0837a93199feaa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/evhost"
server.pid-file = env.SRCDIR + "/tmp/lighttpd/lighttpd.pid"
## bind to port (default: 80)
server.port = 2048
## bind to localhost (default: all interfaces)
server.bind = "localhost"
server.name = "www.example.org"
server.tag = "Proxy"
server.errorlog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
server.modules = (
"mod_evhost",
"mod_accesslog" )
server.indexfiles = ( "index.html" )
######################## MODULE CONFIG ############################
#### mod-evhost
$HTTP["host"] =~ "evhost1.example.org" {
evhost.path-pattern = env.SRCDIR + "/tmp/lighttpd/servers/evhost/%{3.1}/%{3.2}/%3/pages/"
}
else $HTTP["host"] =~ "evhost2.example.org" {
evhost.path-pattern = env.SRCDIR + "/tmp/lighttpd/servers/evhost/%3/pages/"
}
else $HTTP["host"] =~ "evhost3.example.org" {
evhost.path-pattern = env.SRCDIR + "/tmp/lighttpd/servers/evhost/%{3.0}/pages/"
}
else $HTTP["host"] =~ "evhost4.example.org" {
evhost.path-pattern = env.SRCDIR + "/tmp/lighttpd/servers/evhost/%3.\1/pages/"
}
else $HTTP["host"] =~ "evhost5.example.org" {
evhost.path-pattern = env.SRCDIR + "/tmp/lighttpd/servers/evhost/%3.\1/pages/"
}
else $HTTP["host"] =~ "evhost.example.org" {
url.access-deny = ("")
}
|