Annotation of embedaddon/lighttpd/tests/mod-simplevhost.conf, revision 1.1.1.2

1.1       misho       1: debug.log-request-handling   = "enable"
                      2: debug.log-response-header   = "disable"
                      3: debug.log-request-header   = "disable"
                      4: 
                      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"
                     10: 
                     11: server.document-root         = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
                     12: server.pid-file              = env.SRCDIR + "/tmp/lighttpd/lighttpd.pid"
                     13: 
                     14: ## bind to port (default: 80)
                     15: server.port                 = 2048
                     16: 
                     17: 
                     18: 
                     19: ######################## MODULE CONFIG ############################
                     20: 
1.1.1.2 ! misho      21: server.modules = (
        !            22:        "mod_simple_vhost",
        !            23: )
1.1       misho      24: 
                     25: # docroot depending on request path
                     26: $HTTP["url"] =~ "^/a/" {
1.1.1.2 ! misho      27:        server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/a.example.org/pages/"
1.1       misho      28: } else $HTTP["url"] =~ "^/b/" {
1.1.1.2 ! misho      29:        server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/b.example.org/pages/"
1.1       misho      30: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>