1 | server.modules = ( |
---|
2 | "mod_alias", |
---|
3 | "mod_magnet", |
---|
4 | ) |
---|
5 | |
---|
6 | server.max-connections=4096 |
---|
7 | server.max-fds=9182 |
---|
8 | server.max-read-idle=5 |
---|
9 | |
---|
10 | ## a static document-root, for virtual-hosting take look at the |
---|
11 | ## server.virtual-* options |
---|
12 | server.document-root = "/var/www/" |
---|
13 | |
---|
14 | ## where to send error-messages to |
---|
15 | server.errorlog = "/var/log/lighttpd/error.log" |
---|
16 | |
---|
17 | ### files to check for if .../ is requested |
---|
18 | #index-file.names = ( "index.php", "index.html", |
---|
19 | # "index.htm", "default.htm", |
---|
20 | # "index.lighttpd.html" ) |
---|
21 | |
---|
22 | ## bind to port (default: 80) |
---|
23 | server.port = 80 |
---|
24 | |
---|
25 | ## bind to localhost only (default: all interfaces) |
---|
26 | ## server.bind = "localhost" |
---|
27 | |
---|
28 | ## to help the rc.scripts |
---|
29 | server.pid-file = "/var/run/lighttpd.pid" |
---|
30 | |
---|
31 | ## change uid to <uid> (default: don't care) |
---|
32 | server.username = "www-data" |
---|
33 | |
---|
34 | ## change uid to <uid> (default: don't care) |
---|
35 | server.groupname = "www-data" |
---|
36 | |
---|
37 | alias.url = ( |
---|
38 | "/__scripts/maint/" => "/etc/lighttpd/scripts-maint/" |
---|
39 | ) |
---|
40 | |
---|
41 | $HTTP["url"] !~ "^/__scripts/maint" { |
---|
42 | magnet.attract-physical-path-to = ( "/etc/lighttpd/scripts-maint.lua" ) |
---|
43 | } |
---|
44 | |
---|
45 | #### external configuration files |
---|
46 | ## mimetype mapping |
---|
47 | include_shell "/usr/share/lighttpd/create-mime.assign.pl" |
---|