[core] fix buffer_copy_string_hex() assert (fixes #2742)
[lighttpd.git] / tests / proxy.conf
blob107a574f28285e6e6b7f4b582fe4234365e3f32c
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_status",
21         "mod_expire",
22         "mod_simple_vhost",
23         "mod_redirect",
24         "mod_fastcgi",
25         "mod_proxy",
26         "mod_cgi",
27         "mod_compress",
28         "mod_userdir",
29         "mod_accesslog",
32 server.indexfiles = (
33         "index.php",
34         "index.html",
35         "index.htm",
36         "default.htm",
39 ######################## MODULE CONFIG ############################
41 accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
43 mimetype.assign = (
44         ".png"  => "image/png",
45         ".jpg"  => "image/jpeg",
46         ".jpeg" => "image/jpeg",
47         ".gif"  => "image/gif",
48         ".html" => "text/html",
49         ".htm"  => "text/html",
50         ".pdf"  => "application/pdf",
51         ".swf"  => "application/x-shockwave-flash",
52         ".spl"  => "application/futuresplash",
53         ".txt"  => "text/plain",
54         ".tar.gz" =>   "application/x-tgz",
55         ".tgz"  => "application/x-tgz",
56         ".gz"   => "application/x-gzip",
57         ".c"    => "text/plain",
58         ".conf" => "text/plain",
61 compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
62 compress.filetype = (
63         "text/plain",
64         "text/html",
67 setenv.add-environment = (
68         "TRAC_ENV" => "foo",
70 setenv.add-request-header = (
71         "FOO" => "foo",
73 setenv.add-response-header = (
74         "BAR" => "foo",
77 proxy.debug = 1
78 proxy.server = ( "" => (
79         "grisu" => (
80                 "host" => "127.0.0.1",
81                 "port" => 2048,
82         ),
85 cgi.assign = (
86         ".pl"  => env.PERL,
87         ".cgi" => env.PERL,
90 userdir.include-user = (
91         "jan",
93 userdir.path = "/"
95 auth.backend = "plain"
96 auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
97 auth.backend.plain.groupfile = "lighttpd.group"
99 auth.backend.ldap.hostname  = "localhost"
100 auth.backend.ldap.base-dn   = "dc=my-domain,dc=com"
101 auth.backend.ldap.filter    = "(uid=$)"
103 auth.require = (
104         "/server-status" => (
105                 "method"  => "digest",
106                 "realm"   => "download archiv",
107                 "require" => "group=www|user=jan|host=192.168.2.10",
108         ),
109         "/auth.php" => (
110                 "method"  => "basic",
111                 "realm"   => "download archiv",
112                 "require" => "user=jan",
113         ),
114         "/server-config" => (
115                 "method"  => "basic",
116                 "realm"   => "download archiv",
117                 "require" => "group=www|user=jan|host=192.168.2.10",
118         ),
121 url.access-deny = (
122         "~",
123         ".inc",
126 url.redirect = (
127         "^/redirect/$" => "http://localhost:2048/",
130 url.rewrite = (
131         "^/rewrite/foo($|\?.+)" => "/indexfile/rewrite.php$1",
132         "^/rewrite/bar(?:$|\?(.+))" => "/indexfile/rewrite.php?bar&$1",
133         "^/rewrite/all(/.*)$" => "/indexfile/rewrite.php?$1",
136 expire.url = (
137         "/expire/access" => "access 2 hours",
138         "/expire/modification" => "access plus 1 seconds 2 minutes",
141 #### status module
142 status.status-url = "/server-status"
143 status.config-url = "/server-config"
145 $HTTP["host"] == "vvv.example.org" {
146         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
149 $HTTP["host"] == "zzz.example.org" {
150         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
151         server.name = "zzz.example.org"
154 $HTTP["host"] == "no-simple.example.org" {
155         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/123.example.org/pages/"
156         server.name = "zzz.example.org"
159 $HTTP["host"] !~ "(no-simple\.example\.org)" {
160         simple-vhost.document-root = "pages"
161         simple-vhost.server-root = env.SRCDIR + "/tmp/lighttpd/servers/"
162         simple-vhost.default-host = "www.example.org"