|
| 1 | +## /etc/lighttpd/lighttpd.conf |
| 2 | + |
| 3 | +var.log_root = "/var/log/lighttpd" |
| 4 | +var.server_root = "/srv/www" |
| 5 | +var.state_dir = "/var/run" |
| 6 | +var.home_dir = "/var/lib/lighttpd" |
| 7 | +var.conf_dir = "/etc/lighttpd" |
| 8 | + |
| 9 | +server.modules = ( |
| 10 | + "mod_access" |
| 11 | +) |
| 12 | + |
| 13 | +server.username = "lighttpd" |
| 14 | +server.groupname = "lighttpd" |
| 15 | +server.document-root = server_root |
| 16 | +server.pid-file = state_dir + "/lighttpd.pid" |
| 17 | + |
| 18 | +server.errorlog = log_root + "/error.log" |
| 19 | + |
| 20 | +## |
| 21 | +## Access log config |
| 22 | +## |
| 23 | +include "conf.d/access_log.conf" |
| 24 | + |
| 25 | +## |
| 26 | +## The debug options are moved into their own file. |
| 27 | +## see conf.d/debug.conf for various options for request debugging. |
| 28 | +## |
| 29 | +include "conf.d/debug.conf" |
| 30 | + |
| 31 | +server.event-handler = "linux-sysepoll" |
| 32 | +server.network-backend = "sendfile" |
| 33 | +server.max-fds = 2048 |
| 34 | + |
| 35 | +server.stat-cache-engine = "simple" |
| 36 | +server.max-connections = 1024 |
| 37 | + |
| 38 | +index-file.names += ( |
| 39 | + "index.xhtml", "index.html", "index.htm", "default.htm" |
| 40 | +) |
| 41 | +url.access-deny = ( "~", ".inc" ) |
| 42 | +static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".scgi" ) |
| 43 | + |
| 44 | +## |
| 45 | +## mimetype mapping |
| 46 | +## |
| 47 | +include "conf.d/mime.conf" |
| 48 | + |
| 49 | +## |
| 50 | +## directory listing configuration |
| 51 | +## |
| 52 | +include "conf.d/dirlisting.conf" |
| 53 | + |
| 54 | +server.follow-symlink = "enable" |
| 55 | +server.upload-dirs = ( "/var/tmp" ) |
0 commit comments