[mod_ssi] produce content in subrequest hook
[lighttpd.git] / tests / proxy.conf
blob72b010ad9d7e937788241553e3d5ccfaa099ff84
1 server.document-root         = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
3 ## bind to port (default: 80)
4 server.port                 = 2050
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                 = "Proxy"
13 server.dir-listing = "enable"
15 server.modules = (
16         "mod_rewrite",
17         "mod_setenv",
18         "mod_access",
19         "mod_auth",
20         "mod_authn_file",
21         "mod_status",
22         "mod_expire",
23         "mod_simple_vhost",
24         "mod_redirect",
25         "mod_fastcgi",
26         "mod_proxy",
27         "mod_cgi",
28         "mod_compress",
29         "mod_userdir",
30         "mod_accesslog",
33 server.indexfiles = (
34         "index.php",
35         "index.html",
36         "index.htm",
37         "default.htm",
40 ######################## MODULE CONFIG ############################
42 accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
44 mimetype.assign = (
45         ".png"  => "image/png",
46         ".jpg"  => "image/jpeg",
47         ".jpeg" => "image/jpeg",
48         ".gif"  => "image/gif",
49         ".html" => "text/html",
50         ".htm"  => "text/html",
51         ".pdf"  => "application/pdf",
52         ".swf"  => "application/x-shockwave-flash",
53         ".spl"  => "application/futuresplash",
54         ".txt"  => "text/plain",
55         ".tar.gz" =>   "application/x-tgz",
56         ".tgz"  => "application/x-tgz",
57         ".gz"   => "application/x-gzip",
58         ".c"    => "text/plain",
59         ".conf" => "text/plain",
62 compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
63 compress.filetype = (
64         "text/plain",
65         "text/html",
68 setenv.add-environment = (
69         "TRAC_ENV" => "foo",
71 setenv.add-request-header = (
72         "FOO" => "foo",
74 setenv.add-response-header = (
75         "BAR" => "foo",
78 proxy.debug = 1
79 proxy.server = ( "" => (
80         "grisu" => (
81                 "host" => "127.0.0.1",
82                 "port" => 2048,
83         ),
86 cgi.assign = (
87         ".pl"  => env.PERL,
88         ".cgi" => env.PERL,
91 userdir.include-user = (
92         "jan",
94 userdir.path = "/"
96 auth.backend = "plain"
97 auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
98 auth.backend.plain.groupfile = "lighttpd.group"
100 #auth.backend.ldap.hostname  = "localhost"
101 #auth.backend.ldap.base-dn   = "dc=my-domain,dc=com"
102 #auth.backend.ldap.filter    = "(uid=$)"
104 auth.require = (
105         "/server-status" => (
106                 "method"  => "digest",
107                 "realm"   => "download archiv",
108                 "require" => "group=www|user=jan|host=192.168.2.10",
109         ),
110         "/auth.php" => (
111                 "method"  => "basic",
112                 "realm"   => "download archiv",
113                 "require" => "user=jan",
114         ),
115         "/server-config" => (
116                 "method"  => "basic",
117                 "realm"   => "download archiv",
118                 "require" => "group=www|user=jan|host=192.168.2.10",
119         ),
122 url.access-deny = (
123         "~",
124         ".inc",
127 url.redirect = (
128         "^/redirect/$" => "http://localhost:2048/",
131 url.rewrite = (
132         "^/rewrite/foo($|\?.+)" => "/indexfile/rewrite.php$1",
133         "^/rewrite/bar(?:$|\?(.+))" => "/indexfile/rewrite.php?bar&$1",
134         "^/rewrite/all(/.*)$" => "/indexfile/rewrite.php?$1",
137 expire.url = (
138         "/expire/access" => "access 2 hours",
139         "/expire/modification" => "access plus 1 seconds 2 minutes",
142 #### status module
143 status.status-url = "/server-status"
144 status.config-url = "/server-config"
146 $HTTP["host"] == "vvv.example.org" {
147         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
150 $HTTP["host"] == "zzz.example.org" {
151         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
152         server.name = "zzz.example.org"
155 $HTTP["host"] == "no-simple.example.org" {
156         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/123.example.org/pages/"
157         server.name = "zzz.example.org"
160 $HTTP["host"] !~ "(no-simple\.example\.org)" {
161         simple-vhost.document-root = "pages"
162         simple-vhost.server-root = env.SRCDIR + "/tmp/lighttpd/servers/"
163         simple-vhost.default-host = "www.example.org"