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

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

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