[doc] remove reference to Linux rt-signals
[lighttpd.git] / tests / fastcgi-10.conf
blob293ce85418e8685541b694687c6a698037cb9bb0
1 server.document-root         = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
3 ## bind to port (default: 80)
4 server.port                 = 2048
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"
13 server.dir-listing          = "enable"
15 server.modules = (
16         "mod_rewrite",
17         "mod_access",
18         "mod_auth",
19         "mod_authn_file",
20         "mod_status",
21         "mod_expire",
22         "mod_redirect",
23         "mod_fastcgi",
24         "mod_cgi",
25         "mod_compress",
26         "mod_accesslog",
29 server.indexfiles = (
30         "index.php",
31         "index.html",
32         "index.htm",
33         "default.htm",
36 ######################## MODULE CONFIG ############################
38 accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
40 mimetype.assign = (
41         ".png"  => "image/png",
42         ".jpg"  => "image/jpeg",
43         ".jpeg" => "image/jpeg",
44         ".gif"  => "image/gif",
45         ".html" => "text/html",
46         ".htm"  => "text/html",
47         ".pdf"  => "application/pdf",
48         ".swf"  => "application/x-shockwave-flash",
49         ".spl"  => "application/futuresplash",
50         ".txt"  => "text/plain",
51         ".tar.gz" =>   "application/x-tgz",
52         ".tgz"  => "application/x-tgz",
53         ".gz"   => "application/x-gzip",
54         ".c"    => "text/plain",
55         ".conf" => "text/plain",
58 compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
59 compress.filetype = (
60         "text/plain",
61         "text/html",
64 fastcgi.debug = 0
65 fastcgi.server = (
66         ".php" => (
67                 "grisu" => (
68                         "host" => "127.0.0.1",
69                         "port" => 1026,
70                 ),
71         ),
74 cgi.assign = (
75         ".pl"  => env.PERL,
76         ".cgi" => env.PERL,
79 auth.backend = "plain"
80 auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
81 auth.backend.plain.groupfile = "lighttpd.group"
83 #auth.backend.ldap.hostname  = "localhost"
84 #auth.backend.ldap.base-dn   = "dc=my-domain,dc=com"
85 #auth.backend.ldap.filter    = "(uid=$)"
87 auth.require = (
88         "/server-status" => (
89                 "method"  => "digest",
90                 "realm"   => "download archiv",
91                 "require" => "group=www|user=jan|host=192.168.2.10",
92         ),
93         "/auth.php" => (
94                 "method"  => "basic",
95                 "realm"   => "download archiv",
96                 "require" => "user=jan",
97         ),
98         "/server-config" => (
99                 "method"  => "basic",
100                 "realm"   => "download archiv",
101                 "require" => "group=www|user=jan|host=192.168.2.10",
102         ),
105 url.access-deny = (
106         "~",
107         ".inc",
110 url.redirect = (
111         "^/redirect/$" => "http://localhost:2048/",
114 expire.url = (
115         "/buggy/" => "access 2 hours",
116         "/asdhas/" => "access plus 1 seconds 2 minutes",
119 #### status module
120 status.status-url = "/server-status"
121 status.config-url = "/server-config"
123 $HTTP["host"] == "vvv.example.org" {
124         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
127 $HTTP["host"] == "zzz.example.org" {
128         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
129         server.name = "zzz.example.org"