forked from kapsiry/sikteeri
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlighttpd.conf.template
57 lines (46 loc) · 1.77 KB
/
lighttpd.conf.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Lighttpd config for static files - use if test server breaks with
# static files.
# USAGE: lighttpd -Df lighttpd.conf
#
# NOT suitable for production environment
##########################################
server.modules = (
# "mod_rewrite",
# "mod_redirect",
# "mod_alias",
"mod_access",
# "mod_auth",
# "mod_status",
# "mod_setenv",
# "mod_fastcgi",
# "mod_expire",
"mod_accesslog" )
server.dir-listing = "enable"
server.document-root = "./sikteeri"
## where to send error-messages to
server.errorlog = "/tmp/sikteeri-lighttpd.err"
accesslog.filename = "/tmp/sikteeri-lighttpd.log"
#index-file.names = ( "index.php", "index.html",
# "index.htm", "default.htm" )
## set the event-handler (read the performance section in the manual)
server.event-handler = "freebsd-kqueue" # needed on OS X
url.access-deny = ( "~", ".inc", ".git" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
## bind to port (default: 80)
server.port = 12766
## bind to localhost (default: all interfaces)
server.bind = "127.0.0.1"
## to help the rc.scripts
server.pid-file = "/tmp/sikteeri-lighttpd.pid"
# mimetype mapping
mimetype.assign = (
".css" => "text/css",
".html" => "text/html",
".htm" => "text/html",
".js" => "text/javascript",
".txt" => "text/plain",
".dtd" => "text/xml",
".xml" => "text/xml",
# default mime type
"" => "application/octet-stream",
)