aboutsummaryrefslogtreecommitdiff
path: root/web/lighttpd.conf
blob: 65fa5803c04ec55bb0501662572bd459a1b07135 (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
33
34
35
36
37
38
39
40
41
server.modules = (
	"mod_cgi"
)

server.document-root        = "/www2"
server.upload-dirs          = ( "/tmp" )
server.errorlog             = "/var/log/lighttpd/error.log"
server.pid-file             = "/var/run/lighttpd.pid"
#server.username             = "http"
#server.groupname            = "www-data"

index-file.names            = ( "index.php", "index.html",
                                "index.htm", "default.htm",
                              )

static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".py" )

### Options that are useful but not always necessary:
#server.chroot               = "/"
#server.port                 = 81
#server.bind                 = "localhost"
#server.tag                  = "lighttpd"
#server.errorlog-use-syslog  = "enable"
#server.network-backend      = "writev"

# listen on IPv6
$SERVER["socket"] == "[::]:80" {  }

### Use IPv6 if available
#include_shell "/usr/share/lighttpd/use-ipv6.pl"

#dir-listing.encoding        = "utf-8"
#server.dir-listing          = "enable"

include "/etc/lighttpd/mime.conf"
#include "/etc/lighttpd/modules.d/*.load"
#include "/etc/lighttpd/conf.d/*.conf"

cgi.assign += (
        ".sh" => "/bin/sh"
)