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

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