-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathlighttpd.conf
More file actions
40 lines (34 loc) · 893 Bytes
/
lighttpd.conf
File metadata and controls
40 lines (34 loc) · 893 Bytes
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
server.modules = (
"mod_access",
"mod_alias",
"mod_accesslog",
"mod_cgi"
)
server.document-root = "/var/www"
server.upload-dirs = ("/var/cache/lighttpd/uploads")
server.errorlog = "/var/log/lighttpd/error.log"
accesslog.filename = "/var/log/lighttpd/access.log"
server.pid-file = "/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
server.port = 8080
index-file.names = ("index.html")
mimetype.assign = (
".html" => "text/html",
".txt" => "text/plain",
".css" => "text/css",
".js" => "application/javascript",
".png" => "image/png",
".jpg" => "image/jpeg"
)
# Enable CGI for .sh
cgi.assign = (
".sh" => "/bin/bash"
)
alias.url += (
"/cgi-bin/" => "/var/www/cgi-bin/"
)
# Allow executing CGI scripts
$HTTP["url"] =~ "^/cgi-bin/" {
cgi.assign = ( ".sh" => "/bin/bash" )
}