[mod_proxy] add unix domain socket support (fixes #2653)
[lighttpd.git] / tests / fastcgi-13.conf
blob499a7f55780f0c8dafb2ab6d59fcb67998df067a
1 server.document-root         = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
3 debug.log-request-header   = "enable"
4 debug.log-response-header  = "enable"
5 debug.log-request-handling = "enable"
7 ## bind to port (default: 80)
8 server.port                 = 2048
10 ## bind to localhost (default: all interfaces)
11 server.bind                = "localhost"
12 server.errorlog            = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
13 server.breakagelog         = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
14 server.name                = "www.example.org"
15 server.tag                 = "Apache 1.3.29"
17 ## 
18 ## Format: <errorfile-prefix><status>.html
19 ## -> ..../status-404.html for 'File not found'
20 #server.errorfile-prefix    = "/home/weigon/projects/lighttpd/doc/status-"
22 server.dir-listing          = "enable"
24 #server.event-handler        = "linux-sysepoll"
25 #server.event-handler        = "linux-rtsig"
27 #server.modules.path         = ""
28 server.modules              = ( 
29                                 "mod_rewrite", 
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" ) 
44 server.indexfiles           = ( "index.php", "index.html", 
45                                 "index.htm", "default.htm" )
47 #,-- only root can use these options
49 #|# chroot() to directory (default: no chroot() )
50 #| server.chroot  /
51 #|# change uid to <uid> (default: don't care)
52 #| server.userid wwwrun
53 #|# change uid to <uid> (default: don't care)
54 #| server.groupid wwwrun
56 #`-- 
59 ######################## MODULE CONFIG ############################
62 accesslog.filename          = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
64 mimetype.assign             = ( ".png"  => "image/png", 
65                                 ".jpg"  => "image/jpeg",
66                                 ".jpeg" => "image/jpeg",
67                                 ".gif"  => "image/gif",
68                                 ".html" => "text/html",
69                                 ".htm"  => "text/html",
70                                 ".pdf"  => "application/pdf",
71                                 ".swf"  => "application/x-shockwave-flash",
72                                 ".spl"  => "application/futuresplash",
73                                 ".txt"  => "text/plain",
74                                 ".tar.gz" =>   "application/x-tgz",
75                                 ".tgz"  => "application/x-tgz",
76                                 ".gz"   => "application/x-gzip",
77                                 ".c"    => "text/plain",
78                                 ".conf" => "text/plain" )
80 compress.cache-dir          = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
81 compress.filetype           = ("text/plain", "text/html")
83 fastcgi.debug               = 0
84 fastcgi.server              = ( ".php" => ( 
85                                   "grisu" => ( 
86                                     "host" => "127.0.0.1",
87                                     "port" => 1048,
88                                     "bin-path" => env.PHP,
89                                     "bin-copy-environment" => ( "PATH", "SHELL", "USER" ),
90                                   )
91                                 )
92                               )
93                 
95 cgi.assign                  = ( ".pl"  => "/usr/bin/perl",
96                                 ".cgi" => "/usr/bin/perl",
97                                 ".py"  => "/usr/bin/python" )
98                         
101 ssl.engine                  = "disable"
102 # ssl.pemfile                 = "server.pem"
104 auth.backend                = "plain"
105 auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
106 auth.backend.plain.groupfile = "lighttpd.group"
108 auth.backend.ldap.hostname  = "localhost"
109 auth.backend.ldap.base-dn   = "dc=my-domain,dc=com"
110 auth.backend.ldap.filter    = "(uid=$)"
112 auth.require                = ( "/server-status" => 
113                                 ( 
114                                   "method"  => "digest",
115                                   "realm"   => "download archiv",
116 #                                 "require" => ("group=www", "user=jan", "host=192.168.2.10")
117                                   "require" => "group=www|user=jan|host=192.168.2.10"
118                                 ),
119                                 "/auth.php" => 
120                                 ( 
121                                   "method"  => "basic",
122                                   "realm"   => "download archiv",
123 #                                 "require" => ("group=www", "user=jan", "host=192.168.2.10")
124                                   "require" => "user=jan"
125                                 ),
126                                 "/server-config" => 
127                                 ( 
128                                   "method"  => "basic",
129                                   "realm"   => "download archiv",
130 #                                 "require" => ("group=www", "user=jan", "user=weigon", "host=192.168.2.10")
131                                   "require" => "group=www|user=jan|host=192.168.2.10"
132                                 )
133                               )
135 url.access-deny             = ( "~", ".inc")
137 url.redirect                = ( "^/redirect/$" => "http://localhost:2048/" )
139 expire.url                  = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
141 #cache.cache-dir             = "/home/weigon/wwwroot/cache/"
143 #### status module
144 status.status-url           = "/server-status"
145 status.config-url           = "/server-config"
147 $HTTP["host"] == "vvv.example.org" {
148   server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
151 $HTTP["host"] == "zzz.example.org" {
152   server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
153   server.name = "zzz.example.org"