File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / tests / mod-simplevhost.conf
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Nov 2 10:35:00 2016 UTC (7 years, 8 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_41p8, HEAD
lighttpd 1.4.41

    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 = (
   22: 	"mod_simple_vhost",
   23: )
   24: 
   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/"
   30: }

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