]> git.pld-linux.org Git - packages/lighttpd.git/blob - lighttpd.conf
4bfc160bb584e18ded0cf4aaa4c3759ce7188cca
[packages/lighttpd.git] / lighttpd.conf
1 # lighttpd configuration file
2
3 # use a it as base for lighttpd 1.0.0 and above
4 #
5 # $Id$
6
7 ############ Options you really have to take care of ####################
8
9 ## modules to load
10 # at least mod_access and mod_accesslog should be loaded
11 # all other module should only be loaded if really neccesary
12 # - saves some time
13 # - saves memory
14 server.modules              = ( 
15 #                               "mod_rewrite", 
16 #                               "mod_redirect", 
17                                 "mod_access", 
18 #                               "mod_auth", 
19 #                               "mod_status", 
20 #                               "mod_fastcgi",
21 #                               "mod_simple_vhost",
22 #                               "mod_evhost",
23 #                               "mod_cgi",
24 #                               "mod_compress",
25 #                               "mod_ssi",
26 #                               "mod_usertrack",
27 #                               "mod_rrdtool",
28                                 "mod_accesslog" )
29
30 ## a static document-root, for virtual-hosting take look at the 
31 ## server.virtual-* options
32 server.document-root             = "/home/services/lighttpd/html/"
33
34 ## where to send error-messages to
35 server.errorlog            = "/var/log/lighttpd/lighttpd.log"
36
37 # files to check for if .../ is requested
38 server.indexfiles          = ( "index.php", "index.html", 
39                                 "index.htm", "default.htm" )
40
41 # mimetype mapping
42 mimetype.assign            = (
43   ".pdf"          =>      "application/pdf",
44   ".sig"          =>      "application/pgp-signature",
45   ".spl"          =>      "application/futuresplash",
46   ".class"        =>      "application/octet-stream",
47   ".ps"           =>      "application/postscript",
48   ".torrent"      =>      "application/x-bittorrent",
49   ".dvi"          =>      "application/x-dvi",
50   ".gz"           =>      "application/x-gzip",
51   ".pac"          =>      "application/x-ns-proxy-autoconfig",
52   ".swf"          =>      "application/x-shockwave-flash",
53   ".tar.gz"       =>      "application/x-tgz",
54   ".tgz"          =>      "application/x-tgz",
55   ".tar"          =>      "application/x-tar",
56   ".zip"          =>      "application/zip",
57   ".mp3"          =>      "audio/mpeg",
58   ".m3u"          =>      "audio/x-mpegurl",
59   ".wma"          =>      "audio/x-ms-wma",
60   ".wax"          =>      "audio/x-ms-wax",
61   ".ogg"          =>      "audio/x-wav",
62   ".wav"          =>      "audio/x-wav",
63   ".gif"          =>      "image/gif",
64   ".jpg"          =>      "image/jpeg",
65   ".jpeg"         =>      "image/jpeg",
66   ".png"          =>      "image/png",
67   ".xbm"          =>      "image/x-xbitmap",
68   ".xpm"          =>      "image/x-xpixmap",
69   ".xwd"          =>      "image/x-xwindowdump",
70   ".css"          =>      "text/css",
71   ".html"         =>      "text/html",
72   ".htm"          =>      "text/html",
73   ".js"           =>      "text/javascript",
74   ".asc"          =>      "text/plain",
75   ".c"            =>      "text/plain",
76   ".conf"         =>      "text/plain",
77   ".text"         =>      "text/plain",
78   ".txt"          =>      "text/plain",
79   ".dtd"          =>      "text/xml",
80   ".xml"          =>      "text/xml",
81   ".mpeg"         =>      "video/mpeg",
82   ".mpg"          =>      "video/mpeg",
83   ".mov"          =>      "video/quicktime",
84   ".qt"           =>      "video/quicktime",
85   ".avi"          =>      "video/x-msvideo",
86   ".asf"          =>      "video/x-ms-asf",
87   ".asx"          =>      "video/x-ms-asf",
88   ".wmv"          =>      "video/x-ms-wmv"
89 )
90
91 # Use the "Content-Type" extended attribute to obtain mime type if possible
92 # mimetype.use-xattr = "enable"
93
94 #### accesslog module
95 accesslog.filename          = "/var/log/lighttpd/access.log"
96
97 ## deny access the file-extensions
98 #
99 # ~    is for backupfiles from vi, emacs, joe, ...
100 # .inc is often used for code includes which should in general not be part
101 #      of the document-root
102 url.access-deny             = ( "~", ".inc" )
103
104
105
106 ######### Options that are good to be but not neccesary to be changed #######
107
108 ## bind to port (default: 80)
109 #server.port                = 81
110
111 ## bind to localhost (default: all interfaces)
112 #server.bind                = "grisu.home.kneschke.de"
113
114 ## error-handler for status 404
115 #server.error-handler-404   = "/error-handler.html"
116 #server.error-handler-404   = "/error-handler.php"
117
118 ## to help the rc.scripts
119 # server.pid-file              = "/var/run/lighttpd.pid"
120
121 ###### virtual hosts
122 ##
123 ##   If you want name-based virtual hosting add the next three settings and load
124 ##   mod_simple_vhost
125 ##
126 ## document-root =
127 ##   virtual-server-root + virtual-server-default-host + virtual-server-docroot or
128 ##   virtual-server-root + http-host + virtual-server-docroot
129 ##
130 #simple-vhost.server-root         = "/home/weigon/wwwroot/servers/"
131 #simple-vhost.default-host        = "grisu.home.kneschke.de"
132 #simple-vhost.document-root       = "/pages/"
133
134
135 ## 
136 ## Format: <errorfile-prefix><status>.html
137 ## -> ..../status-404.html for 'File not found'
138 #server.errorfile-prefix    = "/home/weigon/projects/lighttpd/doc/status-"
139
140 ## virtual directory listings
141 #server.dir-listing          = "enable"
142
143 ## send unhandled HTTP-header headers to error-log
144 #debug.dump-unknown-headers  = "enable"
145
146 ### only root can use these options
147 #
148 # chroot() to directory (default: no chroot() )
149 #server.chroot            = "/"
150
151 ## change uid to <uid> (default: don't care)
152 server.username            = "lighttpd"
153
154 ## change uid to <uid> (default: don't care)
155 server.groupname           = "lighttpd"
156
157 #### compress module
158 #compress.cache-dir          = "/tmp/lighttpd/cache/compress/"
159 #compress.filetype           = ("text/plain", "text/html")
160
161 #### fastcgi module
162 ## read fastcgi.txt for more info
163 #fastcgi.server              = ( ".php" =>
164 #                               ( "localhost" => 
165 #                                 ( 
166 #                                   "socket" => "/tmp/php-fastcgi.socket",
167 #                                   "bin-path" => "/usr/local/bin/php"
168 #                                 )
169 #                               )
170 #                             )
171
172 #### CGI module
173 #cgi.assign                  = ( ".pl"  => "/usr/bin/perl",
174 #                                ".cgi" => "/usr/bin/perl" )
175 #
176
177 #### SSL engine
178 #ssl.engine                  = "enable"
179 #ssl.pemfile                 = "server.pem"
180
181 #### status module
182 # status.status-url = "/server-status"
183 # status.config-url = "/server-config"
184
185 #### auth module
186 ## read authentification.txt for more info
187 # auth.backend                = "plain"
188 # auth.backend.plain.userfile = "lighttpd.user"
189 # auth.backend.plain.groupfile = "lighttpd.group"
190
191 # auth.backend.ldap.hostname = "localhost"
192 # auth.backend.ldap.base-dn  = "dc=my-domain,dc=com"
193 # auth.backend.ldap.filter   = "(uid=$)"
194
195 # auth.require                = ( "/server-status" => 
196 #                                ( 
197 #                                 "method"  => "digest",
198 #                                 "realm"   => "download archiv",
199 #                                 "require" => "group=www|user=jan|host=192.168.2.10"
200 #                               ),
201 #                               "/server-info" => 
202 #                                ( 
203 #                                 "method"  => "digest",
204 #                                 "realm"   => "download archiv",
205 #                                 "require" => "group=www|user=jan|host=192.168.2.10"
206 #                               )
207 #                              )
208
209 #### url handling modules (rewrite, redirect, access)
210 # url.rewrite                 = ( "^/$"             => "/server-status" )
211 # url.redirect                = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
212
213 # define a pattern for the host url finding
214 # %% => % sign
215 # %0 => domain name + tld
216 # %1 => tld
217 # %2 => domain name without tld
218 # %3 => subdomain 1 name
219 # %4 => subdomain 2 name
220 #
221 # evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/"
222
223 #### expire module
224 # expire.url                  = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
225
226 #### ssi
227 # ssi.extension              = ( ".shtml" )
228
229 #### rrdtool
230 # rrdtool.binary = "/usr/bin/rrdtool"
231 # rrdtool.db-name = "/var/www/lighttpd.rrd"
232
233 #### userdir module
234 # userdir.path = "public_html"
235 # userdir.exclude-user = ( "root", "postmaster" )
236 #
237 ## if set, only users from this list may use the feature
238 # userdir.include-user = ""
239
240 #### alias module
241 # alias.url = ( "/cgi-bin/" => "/var/www/servers/www.example.org/cgi-bin/" )
This page took 0.065713 seconds and 3 git commands to generate.