[autobuild] allow sendfile() in cross-compile (fixes #2836)
[lighttpd.git] / tests / fastcgi-13.conf
blob9c2ae57d2db8ae8fcff19942c17289ccd6dab691
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 server.dir-listing          = "enable"
19 server.modules = (
20         "mod_rewrite",
21         "mod_access",
22         "mod_auth",
23         "mod_authn_file",
24         "mod_status",
25         "mod_expire",
26         "mod_redirect",
27         "mod_fastcgi",
28         "mod_cgi",
29         "mod_compress",
30         "mod_accesslog"
33 server.indexfiles = (
34         "index.php",
35         "index.html",
36         "index.htm",
37         "default.htm",
40 ######################## MODULE CONFIG ############################
43 accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
45 mimetype.assign = (
46         ".png"  => "image/png",
47         ".jpg"  => "image/jpeg",
48         ".jpeg" => "image/jpeg",
49         ".gif"  => "image/gif",
50         ".html" => "text/html",
51         ".htm"  => "text/html",
52         ".pdf"  => "application/pdf",
53         ".swf"  => "application/x-shockwave-flash",
54         ".spl"  => "application/futuresplash",
55         ".txt"  => "text/plain",
56         ".tar.gz" => "application/x-tgz",
57         ".tgz"  => "application/x-tgz",
58         ".gz"   => "application/x-gzip",
59         ".c"    => "text/plain",
60         ".conf" => "text/plain",
63 compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
64 compress.filetype = (
65         "text/plain",
66         "text/html",
69 fastcgi.debug = 0
70 fastcgi.server = (
71         ".php" => (
72                 "grisu" => (
73                         "host" => "127.0.0.1",
74                         "port" => 1048,
75                         "bin-path" => env.PHP,
76                         "bin-copy-environment" => ( "PATH", "SHELL", "USER", ),
77                 ),
78         ),
81 cgi.assign = (
82         ".pl"  => env.PERL,
83         ".cgi" => env.PERL,
86 auth.backend = "plain"
87 auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
88 auth.backend.plain.groupfile = "lighttpd.group"
90 #auth.backend.ldap.hostname  = "localhost"
91 #auth.backend.ldap.base-dn   = "dc=my-domain,dc=com"
92 #auth.backend.ldap.filter    = "(uid=$)"
94 auth.require = (
95         "/server-status" => (
96                 "method"  => "digest",
97                 "realm"   => "download archiv",
98                 "require" => "group=www|user=jan|host=192.168.2.10",
99         ),
100         "/auth.php" => (
101                 "method"  => "basic",
102                 "realm"   => "download archiv",
103                 "require" => "user=jan",
104         ),
105         "/server-config" => (
106                 "method"  => "basic",
107                 "realm"   => "download archiv",
108                 "require" => "group=www|user=jan|host=192.168.2.10",
109         ),
112 url.access-deny = (
113         "~",
114         ".inc",
117 url.redirect = (
118         "^/redirect/$" => "http://localhost:2048/",
121 expire.url = (
122         "/buggy/" => "access 2 hours",
123         "/asdhas/" => "access plus 1 seconds 2 minutes",
126 #### status module
127 status.status-url = "/server-status"
128 status.config-url = "/server-config"
130 $HTTP["host"] == "vvv.example.org" {
131         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
134 $HTTP["host"] == "zzz.example.org" {
135         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
136         server.name = "zzz.example.org"