Annotation of embedaddon/lighttpd/tests/fastcgi-auth.conf, revision 1.1

1.1     ! misho       1: server.document-root         = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
        !             2: 
        !             3: debug.log-request-header   = "enable"
        !             4: debug.log-response-header  = "enable"
        !             5: debug.log-request-handling = "enable"
        !             6: 
        !             7: ## bind to port (default: 80)
        !             8: server.port                 = 2048
        !             9: 
        !            10: # server.license              = "00000001000000013feccb804014587f000000010000000105911c976a3d462c8eaa2d7ca850432c"
        !            11: 
        !            12: ## bind to localhost (default: all interfaces)
        !            13: server.bind                = "localhost"
        !            14: server.errorlog            = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
        !            15: server.breakagelog         = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
        !            16: server.name                = "www.example.org"
        !            17: server.tag                 = "Apache 1.3.29"
        !            18: 
        !            19: ##
        !            20: ## Format: <errorfile-prefix><status>.html
        !            21: ## -> ..../status-404.html for 'File not found'
        !            22: #server.errorfile-prefix    = "/home/weigon/projects/lighttpd/doc/status-"
        !            23: 
        !            24: server.dir-listing          = "enable"
        !            25: 
        !            26: #server.event-handler        = "linux-sysepoll"
        !            27: #server.event-handler        = "linux-rtsig"
        !            28: 
        !            29: #server.modules.path         = ""
        !            30: server.modules              = (
        !            31:                                "mod_rewrite",
        !            32:                                "mod_access",
        !            33:                                "mod_auth",
        !            34: #                              "mod_httptls",
        !            35:                                "mod_status",
        !            36:                                "mod_expire",
        !            37: #                              "mod_simple_vhost",
        !            38:                                "mod_redirect",
        !            39: #                              "mod_evhost",
        !            40: #                              "mod_localizer",
        !            41:                                "mod_fastcgi",
        !            42:                                "mod_cgi",
        !            43:                                "mod_compress",
        !            44:                                "mod_accesslog" )
        !            45: 
        !            46: server.indexfiles           = ( "index.php", "index.html",
        !            47:                                 "index.htm", "default.htm" )
        !            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: fastcgi.debug               = 0
        !            86: fastcgi.server              = ( "/" => (
        !            87:                                   "grisu" => (
        !            88:                                    "host" => "127.0.0.1",
        !            89:                                    "port" => 20000,
        !            90:                                    "bin-path" => env.SRCDIR + "/fcgi-auth",
        !            91:                                     "mode" => "authorizer",
        !            92:                                     "docroot" => env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/",
        !            93:                                     "check-local" => "disable",
        !            94: 
        !            95:                                  )
        !            96:                                )
        !            97:                              )
        !            98: 
        !            99: 
        !           100: cgi.assign                  = ( ".pl"  => "/usr/bin/perl",
        !           101:                                 ".cgi" => "/usr/bin/perl",
        !           102:                                ".py"  => "/usr/bin/python" )
        !           103: 
        !           104: 
        !           105: 
        !           106: ssl.engine                  = "disable"
        !           107: # ssl.pemfile                 = "server.pem"
        !           108: 
        !           109: auth.backend                = "plain"
        !           110: auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
        !           111: auth.backend.plain.groupfile = "lighttpd.group"
        !           112: 
        !           113: auth.backend.ldap.hostname  = "localhost"
        !           114: auth.backend.ldap.base-dn   = "dc=my-domain,dc=com"
        !           115: auth.backend.ldap.filter    = "(uid=$)"
        !           116: 
        !           117: auth.require                = ( "/server-status" =>
        !           118:                                 (
        !           119:                                  "method"  => "digest",
        !           120:                                  "realm"   => "download archiv",
        !           121: #                                "require" => ("group=www", "user=jan", "host=192.168.2.10")
        !           122:                                  "require" => "group=www|user=jan|host=192.168.2.10"
        !           123:                                ),
        !           124:                                "/auth.php" =>
        !           125:                                 (
        !           126:                                  "method"  => "basic",
        !           127:                                  "realm"   => "download archiv",
        !           128: #                                "require" => ("group=www", "user=jan", "host=192.168.2.10")
        !           129:                                  "require" => "user=jan"
        !           130:                                ),
        !           131:                                "/server-config" =>
        !           132:                                 (
        !           133:                                  "method"  => "basic",
        !           134:                                  "realm"   => "download archiv",
        !           135: #                                "require" => ("group=www", "user=jan", "user=weigon", "host=192.168.2.10")
        !           136:                                  "require" => "group=www|user=jan|host=192.168.2.10"
        !           137:                                )
        !           138:                               )
        !           139: 
        !           140: url.access-deny             = ( "~", ".inc")
        !           141: 
        !           142: url.redirect                = ( "^/redirect/$" => "http://localhost:2048/" )
        !           143: 
        !           144: expire.url                  = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
        !           145: 
        !           146: #cache.cache-dir             = "/home/weigon/wwwroot/cache/"
        !           147: 
        !           148: #### status module
        !           149: status.status-url           = "/server-status"
        !           150: status.config-url           = "/server-config"
        !           151: 
        !           152: $HTTP["host"] == "vvv.example.org" {
        !           153:   server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
        !           154: }
        !           155: 
        !           156: $HTTP["host"] == "zzz.example.org" {
        !           157:   server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
        !           158:   server.name = "zzz.example.org"
        !           159: }
        !           160: 

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