drain backend socket/pipe bufs upon FDEVENT_HUP
[lighttpd.git] / tests / mod-simplevhost.conf
blob533fe3b9c168026d97e264bfe7dc3ee9a0dd77e5
1 debug.log-request-handling   = "enable"
2 debug.log-response-header   = "disable"
3 debug.log-request-header   = "disable"
5 ## bind to localhost (default: all interfaces)
6 server.bind                = "localhost"
7 server.errorlog            = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
8 server.breakagelog         = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
9 server.name                = "www.example.org"
11 server.document-root         = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
12 server.pid-file              = env.SRCDIR + "/tmp/lighttpd/lighttpd.pid"
14 ## bind to port (default: 80)
15 server.port                 = 2048
19 ######################## MODULE CONFIG ############################
21 server.modules = (
22         "mod_simple_vhost",
25 # docroot depending on request path
26 $HTTP["url"] =~ "^/a/" {
27         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/a.example.org/pages/"
28 } else $HTTP["url"] =~ "^/b/" {
29         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/b.example.org/pages/"