~ubuntu-branches/ubuntu/natty/lighttpd/natty

« back to all changes in this revision

Viewing changes to tests/bug-06.conf

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Marek
  • Date: 2005-11-26 11:48:51 UTC
  • Revision ID: james.westby@ubuntu.com-20051126114851-76t9q0rrwbzjnt2t
Tags: upstream-1.4.8
ImportĀ upstreamĀ versionĀ 1.4.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
server.document-root         = "@SRCDIR@/tmp/lighttpd/servers/www.example.org/pages/"
 
2
server.pid-file              = "@SRCDIR@/tmp/lighttpd/lighttpd.pid"
 
3
 
 
4
## bind to port (default: 80)
 
5
server.port                 = 2048
 
6
 
 
7
# server.license              = "00000001000000013feccb804014587f000000010000000105911c976a3d462c8eaa2d7ca850432c"
 
8
 
 
9
## bind to localhost (default: all interfaces)
 
10
server.bind                = "localhost"
 
11
server.errorlog            = "@SRCDIR@/tmp/lighttpd/logs/lighttpd.error.log"
 
12
server.name                = "www.example.org"
 
13
server.tag                 = "Apache 1.3.29"
 
14
 
 
15
 
 
16
## 
 
17
## Format: <errorfile-prefix><status>.html
 
18
## -> ..../status-404.html for 'File not found'
 
19
#server.errorfile-prefix    = "/home/weigon/projects/lighttpd/doc/status-"
 
20
 
 
21
server.dir-listing          = "enable"
 
22
 
 
23
#server.event-handler        = "linux-sysepoll"
 
24
#server.event-handler        = "linux-rtsig"
 
25
 
 
26
#server.modules.path         = ""
 
27
server.modules              = ( 
 
28
                                "mod_rewrite",
 
29
                                "mod_setenv",
 
30
                                "mod_access", 
 
31
                                "mod_auth",
 
32
#                               "mod_httptls",
 
33
                                "mod_status", 
 
34
                                "mod_expire",
 
35
                                "mod_simple_vhost",
 
36
                                "mod_redirect", 
 
37
#                               "mod_evhost",
 
38
#                               "mod_localizer",
 
39
                                "mod_fastcgi",
 
40
                                "mod_cgi",
 
41
                                "mod_compress",
 
42
                                "mod_accesslog" ) 
 
43
 
 
44
server.indexfiles           = ( "index.html", 
 
45
                                "index.htm", "default.htm", "index.php" )
 
46
 
 
47
#,-- only root can use these options
 
48
#|
 
49
#|# chroot() to directory (default: no chroot() )
 
50
#| server.chroot  /
 
51
#|# change uid to <uid> (default: don't care)
 
52
#| server.userid wwwrun
 
53
#|# change uid to <uid> (default: don't care)
 
54
#| server.groupid wwwrun
 
55
#|
 
56
#`-- 
 
57
 
 
58
 
 
59
######################## MODULE CONFIG ############################
 
60
 
 
61
 
 
62
accesslog.filename          = "@SRCDIR@/tmp/lighttpd/logs/lighttpd.access.log"
 
63
 
 
64
mimetype.assign             = ( ".png"  => "image/png", 
 
65
                                ".jpg"  => "image/jpeg",
 
66
                                ".jpeg" => "image/jpeg",
 
67
                                ".gif"  => "image/gif",
 
68
                                ".html" => "text/html",
 
69
                                ".htm"  => "text/html",
 
70
                                ".pdf"  => "application/pdf",
 
71
                                ".swf"  => "application/x-shockwave-flash",
 
72
                                ".spl"  => "application/futuresplash",
 
73
                                ".txt"  => "text/plain",
 
74
                                ".tar.gz" =>   "application/x-tgz",
 
75
                                ".tgz"  => "application/x-tgz",
 
76
                                ".gz"   => "application/x-gzip",
 
77
                                ".c"    => "text/plain",
 
78
                                ".conf" => "text/plain" )
 
79
 
 
80
compress.cache-dir          = "@SRCDIR@/tmp/lighttpd/cache/compress/"
 
81
compress.filetype           = ("text/plain", "text/html")
 
82
 
 
83
setenv.add-environment      = ( "TRAC_ENV" => "foo")
 
84
setenv.add-request-header   = ( "FOO" => "foo")
 
85
setenv.add-response-header  = ( "BAR" => "foo")
 
86
 
 
87
fastcgi.debug               = 0
 
88
fastcgi.server              = ( ".php" => ( 
 
89
                                  "grisu" => ( 
 
90
                                    "host" => "127.0.0.1",
 
91
                                    "port" => 1026,
 
92
#                                   "mode" => "authorizer",
 
93
#                                   "docroot" => "@SRCDIR@/tmp/lighttpd/servers/www.example.org/pages/",
 
94
                                  )
 
95
                                )
 
96
                              )
 
97
                
 
98
 
 
99
cgi.assign                  = ( ".pl"  => "/usr/bin/perl",
 
100
                                ".cgi" => "/usr/bin/perl",
 
101
                                ".py"  => "/usr/bin/python" )
 
102
                        
 
103
 
 
104
 
 
105
ssl.engine                  = "disable"
 
106
ssl.pemfile                 = "server.pem"
 
107
 
 
108
auth.backend                = "plain"
 
109
auth.backend.plain.userfile = "@SRCDIR@/tmp/lighttpd/lighttpd.user"
 
110
auth.backend.plain.groupfile = "lighttpd.group"
 
111
 
 
112
auth.backend.ldap.hostname  = "localhost"
 
113
auth.backend.ldap.base-dn   = "dc=my-domain,dc=com"
 
114
auth.backend.ldap.filter    = "(uid=$)"
 
115
 
 
116
auth.require                = ( "/server-status" => 
 
117
                                ( 
 
118
                                  "method"  => "digest",
 
119
                                  "realm"   => "download archiv",
 
120
#                                 "require" => ("group=www", "user=jan", "host=192.168.2.10")
 
121
                                  "require" => "group=www|user=jan|host=192.168.2.10"
 
122
                                ),
 
123
                                "/auth.php" => 
 
124
                                ( 
 
125
                                  "method"  => "basic",
 
126
                                  "realm"   => "download archiv",
 
127
#                                 "require" => ("group=www", "user=jan", "host=192.168.2.10")
 
128
                                  "require" => "user=jan"
 
129
                                ),
 
130
                                "/server-config" => 
 
131
                                ( 
 
132
                                  "method"  => "basic",
 
133
                                  "realm"   => "download archiv",
 
134
#                                 "require" => ("group=www", "user=jan", "user=weigon", "host=192.168.2.10")
 
135
                                  "require" => "group=www|user=jan|host=192.168.2.10"
 
136
                                )
 
137
                              )
 
138
 
 
139
url.access-deny             = ( "~", ".inc")
 
140
 
 
141
url.redirect                = ( "^/redirect/$" => "http://localhost:2048/" )
 
142
 
 
143
expire.url                  = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
 
144
 
 
145
#cache.cache-dir             = "/home/weigon/wwwroot/cache/"
 
146
 
 
147
#### status module
 
148
status.status-url           = "/server-status"
 
149
status.config-url           = "/server-config"
 
150
 
 
151
simple-vhost.document-root  = "pages"
 
152
simple-vhost.server-root    = "@SRCDIR@/tmp/lighttpd/servers/"
 
153
simple-vhost.default-host   = "www.example.org"
 
154
 
 
155
$HTTP["host"] == "vvv.example.org" {
 
156
  server.document-root = "@SRCDIR@/tmp/lighttpd/servers/www.example.org/pages/"
 
157
}
 
158
 
 
159
$HTTP["host"] == "zzz.example.org" {
 
160
  server.document-root = "@SRCDIR@/tmp/lighttpd/servers/www.example.org/pages/"
 
161
  server.name = "zzz.example.org"
 
162
}
 
163