summaryrefslogtreecommitdiff
path: root/lighttpd.conf
blob: ffa76f58b2000e03ed58621c642504edd0b54560 (plain)
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
## Simple, Minimal Configuration for lighttpd .
##
## Server file from local directory 'www':
server.document-root = var.CWD + "/www"
server.breakagelog = var.CWD + "/logs/lighttpd-breakage.log"
server.errorlog    = var.CWD + "/logs/lighttpd-error.log"

server.port = 8888

# Static files
mimetype.assign = (
  ".html" => "text/html",
  ".txt" => "text/plain",
  ".jpg" => "image/jpeg",
  ".png" => "image/png"
)
index-file.names = ( "index.html" )

# not static files
static-file.exclude-extensions = ( ".cgi", ".php", ".sh", ".pl", "py" )

# Enable CGI module
server.modules += ( "mod_cgi" )

# Only run CGI scripts if they are marked as executables (chmod +x)
cgi.execute-x-only = "enable"

$HTTP["url"] =~ "^/cgi-bin/" {
        # files under cgi-bin URL are executable
        # (run them directly, don't require an interpreter)
        cgi.assign = ( "" => "" )
}