blob: 4ce516d908af816377b7bac2bf3f04e548a6d7ec (
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
|
### Documentation
# https://wiki.lighttpd.net/
#
### Configuration Syntax
# https://wiki.lighttpd.net/Docs_Configuration
#
### Configuration Options
# https://wiki.lighttpd.net/Docs_ConfigurationOptions
#
### Configuration Variables (potentially used in /etc/lighttpd/conf.d/*.conf)
var.log_root = "/var/log/lighttpd/"
var.server_root = "/www/"
var.state_dir = "/var/run/"
var.home_dir = "/var/lib/lighttpd/"
var.conf_dir = "/etc/lighttpd"
var.vhosts_dir = server_root + "/vhosts"
var.cache_dir = "/var/cache/lighttpd"
var.socket_dir = home_dir + "/sockets"
### OpenWRT lighttpd base configuration
server.document-root = server_root
server.upload-dirs = ( "/tmp" )
server.errorlog = log_root + "error.log"
server.pid-file = state_dir + "lighttpd.pid"
server.username = "http"
server.groupname = "www-data"
# historical; preserved for compatibility; should have been disabled by default
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm",
)
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
include "/etc/lighttpd/mime.conf"
include "/etc/lighttpd/conf.d/*.conf"
### Customizations
# customizations should generally be placed in separate files such as
# /etc/lighttpd/conf.d/00_vars.conf # override variables for conf.d/*.conf
# /etc/lighttpd/conf.d/zz_custom.conf # override other conf.d/*.conf settings
|