File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / tests / bug-06.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: server.document-root         = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
    2: 
    3: ## bind to port (default: 80)
    4: server.port                 = 2048
    5: 
    6: ## bind to localhost (default: all interfaces)
    7: server.bind                = "localhost"
    8: server.errorlog            = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
    9: server.breakagelog         = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
   10: server.name                = "www.example.org"
   11: server.tag                 = "Apache 1.3.29"
   12: 
   13: server.dir-listing          = "enable"
   14: 
   15: server.modules = (
   16: 	"mod_rewrite",
   17: 	"mod_setenv",
   18: 	"mod_access",
   19: 	"mod_auth",
   20: 	"mod_status",
   21: 	"mod_expire",
   22: 	"mod_simple_vhost",
   23: 	"mod_redirect",
   24: 	"mod_fastcgi",
   25: 	"mod_compress",
   26: 	"mod_accesslog",
   27: )
   28: 
   29: server.indexfiles = (
   30: 	"index.html",
   31: 	"index.htm",
   32: 	"default.htm",
   33: 	"index.php",
   34: )
   35: 
   36: ######################## MODULE CONFIG ############################
   37: 
   38: 
   39: accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
   40: 
   41: mimetype.assign = (
   42: 	".png"  => "image/png",
   43: 	".jpg"  => "image/jpeg",
   44: 	".jpeg" => "image/jpeg",
   45: 	".gif"  => "image/gif",
   46: 	".html" => "text/html",
   47: 	".htm"  => "text/html",
   48: 	".pdf"  => "application/pdf",
   49: 	".swf"  => "application/x-shockwave-flash",
   50: 	".spl"  => "application/futuresplash",
   51: 	".txt"  => "text/plain",
   52: 	".tar.gz" =>   "application/x-tgz",
   53: 	".tgz"  => "application/x-tgz",
   54: 	".gz"   => "application/x-gzip",
   55: 	".c"    => "text/plain",
   56: 	".conf" => "text/plain",
   57: )
   58: 
   59: compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
   60: compress.filetype = (
   61: 	"text/plain",
   62: 	"text/html",
   63: )
   64: 
   65: setenv.add-environment = (
   66: 	"TRAC_ENV" => "foo",
   67: )
   68: setenv.add-request-header = (
   69: 	"FOO" => "foo",
   70: )
   71: setenv.add-response-header = (
   72: 	"BAR" => "foo",
   73: )
   74: 
   75: fastcgi.debug = 0
   76: fastcgi.server = ( ".php" => (
   77: 	"grisu" => (
   78: 		"host" => "127.0.0.1",
   79: 		"port" => 1026,
   80: 	),
   81: ))
   82: 
   83: auth.backend                 = "plain"
   84: auth.backend.plain.userfile  = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
   85: auth.backend.plain.groupfile = "lighttpd.group"
   86: 
   87: auth.backend.ldap.hostname   = "localhost"
   88: auth.backend.ldap.base-dn    = "dc=my-domain,dc=com"
   89: auth.backend.ldap.filter     = "(uid=$)"
   90: 
   91: auth.require = (
   92: 	"/server-status" => (
   93: 		"method"  => "digest",
   94: 		"realm"   => "download archiv",
   95: 		"require" => "group=www|user=jan|host=192.168.2.10",
   96: 	),
   97: 	"/auth.php" => (
   98: 		"method"  => "basic",
   99: 		"realm"   => "download archiv",
  100: 		"require" => "user=jan",
  101: 	),
  102: 	"/server-config" => (
  103: 		"method"  => "basic",
  104: 		"realm"   => "download archiv",
  105: 		"require" => "group=www|user=jan|host=192.168.2.10",
  106: 	),
  107: )
  108: 
  109: url.access-deny = (
  110: 	"~",
  111: 	".inc",
  112: )
  113: 
  114: url.redirect = (
  115: 	"^/redirect/$" => "http://localhost:2048/",
  116: )
  117: 
  118: expire.url = (
  119: 	"/buggy/" => "access 2 hours",
  120: 	"/asdhas/" => "access plus 1 seconds 2 minutes",
  121: )
  122: 
  123: #### status module
  124: status.status-url = "/server-status"
  125: status.config-url = "/server-config"
  126: 
  127: simple-vhost.document-root  = "pages"
  128: simple-vhost.server-root    = env.SRCDIR + "/tmp/lighttpd/servers/"
  129: simple-vhost.default-host   = "www.example.org"
  130: 
  131: $HTTP["host"] == "vvv.example.org" {
  132: 	server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
  133: }
  134: 
  135: $HTTP["host"] == "zzz.example.org" {
  136: 	server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
  137: 	server.name = "zzz.example.org"
  138: }

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