Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: lighttpd/conf/lighttpd-inc.conf

Issue 467008: Move lighttpd into deps because it's 20mb of win and mac specific... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « lighttpd/conf/lighttpd-auth.conf ('k') | lighttpd/conf/lighttpd-srv.conf » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # LightTPD Configuration file (INCLUDE)
2 #
3 # Use it as a base for LightTPD 1.0.0 and above.
4 # This version is built for WLMP Webserver Package - http://en.wlmp.project.net/
5 #
6 # $Id: lighttpd-inc.conf,v 1.7 2004/11/03 22:26:05 weigon Exp $
7
8 ############ Options you really have to take care of ####################
9
10 ## modules to load
11 # at least mod_access and mod_accesslog should be loaded
12 # all other module should only be loaded if really neccesary
13 # - saves some time
14 # - saves memory
15 server.modules = (
16 "mod_access",
17 "mod_accesslog",
18 "mod_alias",
19 # "mod_auth",
20 # "mod_cgi",
21 # "mod_cml",
22 # "mod_compress",
23 # "mod_dirlisting",
24 # "mod_evasive",
25 # "mod_evhost",
26 # "mod_expire",
27 # "mod_extforward",
28 # "mod_fastcgi",
29 # "mod_flv_streaming",
30 # "mod_indexfile",
31 # "mod_magnet",
32 # "mod_mysql_vhost",
33 # "mod_proxy",
34 # "mod_redirect",
35 # "mod_rewrite",
36 ## "mod_rrdtool",
37 # "mod_scgi",
38 # "mod_secdownload",
39 # "mod_setenv",
40 # "mod_simple_vhost",
41 "mod_ssi",
42 # "mod_staticfile",
43 "mod_status",
44 ## "mod_trigger_b4_dl",
45 # "mod_userdir",
46 # "mod_usertrack",
47 # "mod_webdav"
48 )
49
50 ## a static document-root, for virtual-hosting take look at the
51 ## server.virtual-* options
52 server.document-root = "HTDOCS/"
53
54 #directory for file uploads
55 server.upload-dirs = ( "TMP/" )
56
57 # files to check for if .../ is requested
58 index-file.names = ( "index.php", "index.pl", "index.cgi",
59 "index.html", "index.htm", "default.htm" )
60
61 ## set the event-handler (read the performance section in the manual)
62 # server.event-handler = "freebsd-kqueue" # needed on OS X
63
64 # mimetype mapping
65 mimetype.assign = (
66 ".pdf" => "application/pdf",
67 ".sig" => "application/pgp-signature",
68 ".spl" => "application/futuresplash",
69 ".class" => "application/octet-stream",
70 ".ps" => "application/postscript",
71 ".torrent" => "application/x-bittorrent",
72 ".dvi" => "application/x-dvi",
73 ".gz" => "application/x-gzip",
74 ".pac" => "application/x-ns-proxy-autoconfig",
75 ".swf" => "application/x-shockwave-flash",
76 ".tar.gz" => "application/x-tgz",
77 ".tgz" => "application/x-tgz",
78 ".tar" => "application/x-tar",
79 ".zip" => "application/zip",
80 ".mp3" => "audio/mpeg",
81 ".m3u" => "audio/x-mpegurl",
82 ".wma" => "audio/x-ms-wma",
83 ".wax" => "audio/x-ms-wax",
84 ".ogg" => "application/ogg",
85 ".wav" => "audio/x-wav",
86 ".gif" => "image/gif",
87 ".jpg" => "image/jpeg",
88 ".jpeg" => "image/jpeg",
89 ".png" => "image/png",
90 ".xbm" => "image/x-xbitmap",
91 ".xpm" => "image/x-xpixmap",
92 ".xwd" => "image/x-xwindowdump",
93 ".css" => "text/css",
94 ".html" => "text/html",
95 ".htm" => "text/html",
96 ".js" => "text/javascript",
97 ".asc" => "text/plain",
98 ".c" => "text/plain",
99 ".cpp" => "text/plain",
100 ".log" => "text/plain",
101 ".conf" => "text/plain",
102 ".text" => "text/plain",
103 ".txt" => "text/plain",
104 ".dtd" => "text/xml",
105 ".xml" => "text/xml",
106 ".mpeg" => "video/mpeg",
107 ".mpg" => "video/mpeg",
108 ".mov" => "video/quicktime",
109 ".qt" => "video/quicktime",
110 ".avi" => "video/x-msvideo",
111 ".asf" => "video/x-ms-asf",
112 ".asx" => "video/x-ms-asf",
113 ".wmv" => "video/x-ms-wmv",
114 ".bz2" => "application/x-bzip",
115 ".tbz" => "application/x-bzip-compressed-tar",
116 ".tar.bz2" => "application/x-bzip-compressed-tar"
117 )
118
119 # Use the "Content-Type" extended attribute to obtain mime type if possible
120 mimetype.use-xattr = "enable"
121
122 ## deny access the file-extensions
123 #
124 # ~ is for backupfiles from vi, emacs, joe, ...
125 # .inc is often used for code includes which should in general not be part
126 # of the document-root
127 url.access-deny = ( "~", ".inc" )
128
129 $HTTP["url"] =~ "\.pdf$" {
130 server.range-requests = "disable"
131 }
132
133 ##
134 # which extensions should not be handle via static-file transfer
135 #
136 # .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
137 static-file.exclude-extensions = ( ".php", ".pl", ".cgi" )
138
139 ######### Options that are good to be but not neccesary to be changed #######
140
141 ## bind to port (default: 80)
142 #server.port = 81
143
144 ## bind to localhost (default: all interfaces)
145 #server.bind = "mydomain.org"
146
147 ## error-handler for status 404
148 #server.error-handler-404 = "/error-handler.html"
149 #server.error-handler-404 = "/error-handler.php"
150
151
152 ###### virtual hosts
153 ##
154 ## If you want name-based virtual hosting add the next three settings and load
155 ## mod_simple_vhost
156 ##
157 ## document-root =
158 ## virtual-server-root + virtual-server-default-host + virtual-server-docroot
159 ## or
160 ## virtual-server-root + http-host + virtual-server-docroot
161 ##
162 #simple-vhost.server-root = "HTDOCS/"
163 #simple-vhost.default-host = "vhost.mydomain.org"
164 #simple-vhost.document-root = "/vhost/"
165
166 ## alias
167 #alias.url = ( "/logs" => "logs" )
168
169 ##
170 ## Format: <errorfile-prefix><status-code>.html
171 ## -> ..../status-404.html for 'File not found'
172 #server.errorfile-prefix = "errors/status-"
173
174 ## virtual directory listings
175 dir-listing.activate = "enable"
176 #dir-listing.encoding = "iso-8859-2"
177 #dir-listing.external-css = "style/oldstyle.css"
178
179 ## enable debugging
180 #debug.log-request-header = "enable"
181 #debug.log-response-header = "enable"
182 #debug.log-request-handling = "enable"
183 #debug.log-file-not-found = "enable"
184
185 ### only root can use these options
186 #
187 # chroot() to directory (default: no chroot() )
188 #server.chroot = "/"
189
190 ## change uid to <uid> (default: don't care)
191 #server.username = "wwwrun"
192
193 ## change uid to <uid> (default: don't care)
194 #server.groupname = "wwwrun"
195
196 #### compress module
197 #compress.cache-dir = "tmp/"
198 #compress.filetype = ("text/plain", "text/html")
199
200 #### proxy module
201 ## read proxy.txt for more info
202 #proxy.server = ( ".php" =>
203 # ( "localhost" =>
204 # (
205 # "host" => "192.168.0.101",
206 # "port" => 80
207 # )
208 # )
209 # )
210
211 #### fastcgi module
212 ## read fastcgi.txt for more info
213 ## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
214 #fastcgi.server = ( ".php" =>
215 # ( "localhost" =>
216 # (
217 # "socket" => "TMP/php-fastcgi.socket",
218 # "bin-path" => "PHP/php-cgi.exe"
219 # )
220 # )
221 # )
222
223 #### CGI module
224 #cgi.assign = ( ".php" => "PHP/php-cgi.exe",
225 # ".pl" => "Perl/perl.exe",
226 # ".cgi" => "Perl/perl.exe" )
227 #
228
229 #### SSL engine
230 #ssl.engine = "enable"
231 #ssl.pemfile = "server.pem"
232
233 #### status module
234 status.status-url = "/server-status"
235 status.config-url = "/server-config"
236
237 #### auth module
238 ## read authentication.txt for more info
239 #auth.backend = "plain"
240 #auth.backend.plain.userfile = "conf/lighttpd-auth.conf"
241 #auth.backend.plain.groupfile = "conf/lighttpd-group.conf"
242
243 #auth.backend.ldap.hostname = "localhost"
244 #auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
245 #auth.backend.ldap.filter = "(uid=$)"
246
247 #auth.require = ( "/server-status" =>
248 # (
249 # "method" => "digest",
250 # "realm" => "Server status",
251 # "require" => "user=admin"
252 # ),
253 # "/server-config" =>
254 # (
255 # "method" => "digest",
256 # "realm" => "Server config",
257 # "require" => "user=admin"
258 # )
259 # )
260
261 #### url handling modules (rewrite, redirect, access)
262 #url.rewrite = ( "^/$" => "/server-status" )
263 #url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
264
265 #### both rewrite/redirect support back reference to regex conditional using %n
266 #$HTTP["host"] =~ "^www\.(.*)" {
267 # url.redirect = ( "^/(.*)" => "http://%1/$1" )
268 #}
269
270 #
271 # define a pattern for the host url finding
272 # %% => % sign
273 # %0 => domain name + tld
274 # %1 => tld
275 # %2 => domain name without tld
276 # %3 => subdomain 1 name
277 # %4 => subdomain 2 name
278 #
279 #evhost.path-pattern = "HTDOCS/"
280
281 #### expire module
282 #expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "ac cess plus 1 seconds 2 minutes")
283
284 #### ssi
285 #ssi.extension = ( ".shtml" )
286
287 #### rrdtool
288 #rrdtool.binary = "rrdtool"
289 #rrdtool.db-name = "lighttpd.rrd"
290
291 #### setenv
292 #setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
293 #setenv.add-response-header = ( "X-Secret-Message" => "42" )
294
295 ## for mod_trigger_b4_dl
296 # trigger-before-download.gdbm-filename = "GDBM/testbase/trigger.db"
297 # trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
298 # trigger-before-download.trigger-url = "^/trigger/"
299 # trigger-before-download.download-url = "^/download/"
300 # trigger-before-download.deny-url = "http://127.0.0.1/index.html"
301 # trigger-before-download.trigger-timeout = 10
302
303 ## for mod_cml
304 ## don't forget to add index.cml to server.indexfiles
305 # cml.extension = ".cml"
306 # cml.memcache-hosts = ( "127.0.0.1:11211" )
307
308 #### variable usage:
309 ## variable name without "." is auto prefixed by "var." and becomes "var.bar"
310 #bar = 1
311 #var.mystring = "foo"
312
313 ## integer add
314 #bar += 1
315 ## string concat, with integer cast as string, result: "www.foo1.com"
316 #server.name = "www." + mystring + var.bar + ".com"
317 ## array merge
318 #index-file.names = (foo + ".php") + index-file.names
319 #index-file.names += (foo + ".php")
320
321 #### include
322 #include "conf/lighttpd-ext.conf"
323 ## same as above if you run: "lighttpd -f conf\lighttpd.conf"
324 #include "lighttpd-ext.conf"
325
326 #### include_shell
327 #include_shell "echo var.a=1"
328 ## the above is same as:
329 #var.a=1
OLDNEW
« no previous file with comments | « lighttpd/conf/lighttpd-auth.conf ('k') | lighttpd/conf/lighttpd-srv.conf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698