[core] consolidate duplicated read-to-close code
[lighttpd.git] / tests / mod-evhost.conf
bloba7a7b079a71cc150ad14eac65f0837a93199feaa
1 server.document-root         = env.SRCDIR + "/tmp/lighttpd/servers/evhost"
2 server.pid-file              = env.SRCDIR + "/tmp/lighttpd/lighttpd.pid"
4 ## bind to port (default: 80)
5 server.port                 = 2048
7 ## bind to localhost (default: all interfaces)
8 server.bind                = "localhost"
9 server.name                = "www.example.org"
10 server.tag                 = "Proxy"
11 server.errorlog            = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
12 server.breakagelog         = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
13 accesslog.filename         = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
15 server.modules              = (
16                                 "mod_evhost",
17                                 "mod_accesslog" )
19 server.indexfiles           = ( "index.html" )
22 ######################## MODULE CONFIG ############################
25 #### mod-evhost
26 $HTTP["host"] =~ "evhost1.example.org" {
27   evhost.path-pattern = env.SRCDIR + "/tmp/lighttpd/servers/evhost/%{3.1}/%{3.2}/%3/pages/"
30 else $HTTP["host"] =~ "evhost2.example.org" {
31   evhost.path-pattern = env.SRCDIR + "/tmp/lighttpd/servers/evhost/%3/pages/"
34 else $HTTP["host"] =~ "evhost3.example.org" {
35   evhost.path-pattern = env.SRCDIR + "/tmp/lighttpd/servers/evhost/%{3.0}/pages/"
38 else $HTTP["host"] =~ "evhost4.example.org" {
39   evhost.path-pattern = env.SRCDIR + "/tmp/lighttpd/servers/evhost/%3.\1/pages/"
42 else $HTTP["host"] =~ "evhost5.example.org" {
43   evhost.path-pattern = env.SRCDIR + "/tmp/lighttpd/servers/evhost/%3.\1/pages/"
45 else $HTTP["host"] =~ "evhost.example.org" {
46   url.access-deny = ("")