Annotation of embedaddon/lighttpd/tests/bug-12.conf, revision 1.1.1.1

1.1       misho       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: # server.license              = "00000001000000013feccb804014587f000000010000000105911c976a3d462c8eaa2d7ca850432c"
                      7: 
                      8: ## bind to localhost (default: all interfaces)
                      9: server.bind                = "localhost"
                     10: server.errorlog            = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
                     11: server.breakagelog         = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
                     12: server.name                = "www.example.org"
                     13: server.tag                 = "Apache 1.3.29"
                     14: 
                     15: 
                     16: ##
                     17: ## Format: <errorfile-prefix><status>.html
                     18: ## -> ..../status-404.html for 'File not found'
                     19: #server.errorfile-prefix    = "/home/weigon/projects/lighttpd/doc/status-"
                     20: 
                     21: server.dir-listing          = "enable"
                     22: 
                     23: #server.event-handler        = "linux-sysepoll"
                     24: #server.event-handler        = "linux-rtsig"
                     25: 
                     26: #server.modules.path         = ""
                     27: server.modules              = (
                     28:                                "mod_rewrite",
                     29:                                "mod_setenv",
                     30:                                "mod_access",
                     31:                                "mod_auth",
                     32: #                              "mod_httptls",
                     33:                                "mod_status",
                     34:                                "mod_expire",
                     35:                                "mod_simple_vhost",
                     36:                                "mod_redirect",
                     37: #                              "mod_evhost",
                     38: #                              "mod_localizer",
                     39:                                "mod_fastcgi",
                     40:                                "mod_cgi",
                     41:                                "mod_compress",
                     42:                                "mod_accesslog" )
                     43: 
                     44: server.indexfiles           = ( "index.html",
                     45:                                 "index.htm", "default.htm", "index.php" )
                     46: 
                     47: server.error-handler-404 = "/indexfile/return-404.php"
                     48: 
                     49: #,-- only root can use these options
                     50: #|
                     51: #|# chroot() to directory (default: no chroot() )
                     52: #| server.chroot  /
                     53: #|# change uid to <uid> (default: don't care)
                     54: #| server.userid wwwrun
                     55: #|# change uid to <uid> (default: don't care)
                     56: #| server.groupid wwwrun
                     57: #|
                     58: #`--
                     59: 
                     60: 
                     61: ######################## MODULE CONFIG ############################
                     62: 
                     63: 
                     64: accesslog.filename          = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
                     65: 
                     66: mimetype.assign             = ( ".png"  => "image/png",
                     67:                                 ".jpg"  => "image/jpeg",
                     68:                                 ".jpeg" => "image/jpeg",
                     69:                                 ".gif"  => "image/gif",
                     70:                                 ".html" => "text/html",
                     71:                                 ".htm"  => "text/html",
                     72:                                 ".pdf"  => "application/pdf",
                     73:                                 ".swf"  => "application/x-shockwave-flash",
                     74:                                 ".spl"  => "application/futuresplash",
                     75:                                 ".txt"  => "text/plain",
                     76:                                 ".tar.gz" =>   "application/x-tgz",
                     77:                                 ".tgz"  => "application/x-tgz",
                     78:                                 ".gz"   => "application/x-gzip",
                     79:                                ".c"    => "text/plain",
                     80:                                ".conf" => "text/plain" )
                     81: 
                     82: compress.cache-dir          = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
                     83: compress.filetype           = ("text/plain", "text/html")
                     84: 
                     85: setenv.add-environment      = ( "TRAC_ENV" => "foo")
                     86: setenv.add-request-header   = ( "FOO" => "foo")
                     87: setenv.add-response-header  = ( "BAR" => "foo")
                     88: 
                     89: fastcgi.debug               = 0
                     90: fastcgi.server              = ( ".php" => (
                     91:                                   "grisu" => (
                     92:                                    "host" => "127.0.0.1",
                     93:                                    "port" => 1026,
                     94: #                                  "mode" => "authorizer",
                     95: #                                  "docroot" => env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/",
                     96:                                  )
                     97:                                )
                     98:                              )
                     99: 
                    100: 
                    101: cgi.assign                  = ( ".pl"  => "/usr/bin/perl",
                    102:                                 ".cgi" => "/usr/bin/perl",
                    103:                                ".py"  => "/usr/bin/python" )
                    104: 
                    105: 
                    106: 
                    107: ssl.engine                  = "disable"
                    108: # ssl.pemfile                 = "server.pem"
                    109: 
                    110: auth.backend                = "plain"
                    111: auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
                    112: auth.backend.plain.groupfile = "lighttpd.group"
                    113: 
                    114: auth.backend.ldap.hostname  = "localhost"
                    115: auth.backend.ldap.base-dn   = "dc=my-domain,dc=com"
                    116: auth.backend.ldap.filter    = "(uid=$)"
                    117: 
                    118: auth.require                = ( "/server-status" =>
                    119:                                 (
                    120:                                  "method"  => "digest",
                    121:                                  "realm"   => "download archiv",
                    122: #                                "require" => ("group=www", "user=jan", "host=192.168.2.10")
                    123:                                  "require" => "group=www|user=jan|host=192.168.2.10"
                    124:                                ),
                    125:                                "/auth.php" =>
                    126:                                 (
                    127:                                  "method"  => "basic",
                    128:                                  "realm"   => "download archiv",
                    129: #                                "require" => ("group=www", "user=jan", "host=192.168.2.10")
                    130:                                  "require" => "user=jan"
                    131:                                ),
                    132:                                "/server-config" =>
                    133:                                 (
                    134:                                  "method"  => "basic",
                    135:                                  "realm"   => "download archiv",
                    136: #                                "require" => ("group=www", "user=jan", "user=weigon", "host=192.168.2.10")
                    137:                                  "require" => "group=www|user=jan|host=192.168.2.10"
                    138:                                )
                    139:                               )
                    140: 
                    141: url.access-deny             = ( "~", ".inc")
                    142: 
                    143: url.redirect                = ( "^/redirect/$" => "http://localhost:2048/" )
                    144: 
                    145: expire.url                  = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
                    146: 
                    147: #cache.cache-dir             = "/home/weigon/wwwroot/cache/"
                    148: 
                    149: #### status module
                    150: status.status-url           = "/server-status"
                    151: status.config-url           = "/server-config"
                    152: 
                    153: simple-vhost.document-root  = "pages"
                    154: simple-vhost.server-root    = env.SRCDIR + "/tmp/lighttpd/servers/"
                    155: simple-vhost.default-host   = "www.example.org"
                    156: 
                    157: $HTTP["host"] == "vvv.example.org" {
                    158:   server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
                    159: }
                    160: 
                    161: $HTTP["host"] == "zzz.example.org" {
                    162:   server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
                    163:   server.name = "zzz.example.org"
                    164: }
                    165: 

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