File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / tests / mod-simplevhost.conf
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 10:32:47 2013 UTC (10 years, 9 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_35p0, v1_4_35, v1_4_33, HEAD
1.4.33

    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: 
   21: server.modules = ( "mod_simple_vhost" )
   22: 
   23: 
   24: # docroot depending on request path
   25: $HTTP["url"] =~ "^/a/" {
   26:   server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/a.example.org/pages/"
   27: } else $HTTP["url"] =~ "^/b/" {
   28:   server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/b.example.org/pages/"
   29: }

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