[build_cmake] clock_gettime() -lrt w/ glibc < 2.17 (fixes #2737)
[lighttpd.git] / tests / fastcgi-10.conf
blob0d96b7eb02ce5371f92f17e422f1165ffaf37d1f
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_status",
20         "mod_expire",
21         "mod_redirect",
22         "mod_fastcgi",
23         "mod_cgi",
24         "mod_compress",
25         "mod_accesslog",
28 server.indexfiles = (
29         "index.php",
30         "index.html",
31         "index.htm",
32         "default.htm",
35 ######################## MODULE CONFIG ############################
37 accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
39 mimetype.assign = (
40         ".png"  => "image/png",
41         ".jpg"  => "image/jpeg",
42         ".jpeg" => "image/jpeg",
43         ".gif"  => "image/gif",
44         ".html" => "text/html",
45         ".htm"  => "text/html",
46         ".pdf"  => "application/pdf",
47         ".swf"  => "application/x-shockwave-flash",
48         ".spl"  => "application/futuresplash",
49         ".txt"  => "text/plain",
50         ".tar.gz" =>   "application/x-tgz",
51         ".tgz"  => "application/x-tgz",
52         ".gz"   => "application/x-gzip",
53         ".c"    => "text/plain",
54         ".conf" => "text/plain",
57 compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
58 compress.filetype = (
59         "text/plain",
60         "text/html",
63 fastcgi.debug = 0
64 fastcgi.server = (
65         ".php" => (
66                 "grisu" => (
67                         "host" => "127.0.0.1",
68                         "port" => 1026,
69                 ),
70         ),
73 cgi.assign = (
74         ".pl"  => env.PERL,
75         ".cgi" => env.PERL,
78 auth.backend = "plain"
79 auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
80 auth.backend.plain.groupfile = "lighttpd.group"
82 auth.backend.ldap.hostname  = "localhost"
83 auth.backend.ldap.base-dn   = "dc=my-domain,dc=com"
84 auth.backend.ldap.filter    = "(uid=$)"
86 auth.require = (
87         "/server-status" => (
88                 "method"  => "digest",
89                 "realm"   => "download archiv",
90                 "require" => "group=www|user=jan|host=192.168.2.10",
91         ),
92         "/auth.php" => (
93                 "method"  => "basic",
94                 "realm"   => "download archiv",
95                 "require" => "user=jan",
96         ),
97         "/server-config" => (
98                 "method"  => "basic",
99                 "realm"   => "download archiv",
100                 "require" => "group=www|user=jan|host=192.168.2.10",
101         ),
104 url.access-deny = (
105         "~",
106         ".inc",
109 url.redirect = (
110         "^/redirect/$" => "http://localhost:2048/",
113 expire.url = (
114         "/buggy/" => "access 2 hours",
115         "/asdhas/" => "access plus 1 seconds 2 minutes",
118 #### status module
119 status.status-url = "/server-status"
120 status.config-url = "/server-config"
122 $HTTP["host"] == "vvv.example.org" {
123         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
126 $HTTP["host"] == "zzz.example.org" {
127         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
128         server.name = "zzz.example.org"