-
Notifications
You must be signed in to change notification settings - Fork 2
/
lighttpd.conf
43 lines (40 loc) · 1.1 KB
/
lighttpd.conf
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
42
43
var.basedir = "/var/www/html"
var.logdir = "/var/log/lighttpd"
var.statedir = "/var/lib/lighttpd"
accesslog.filename = "/proc/self/fd/2"
errorlog.filename = "/proc/self/fd/2"
server.modules = (
"mod_rewrite",
"mod_access",
"mod_accesslog",
"mod_extforward",
"mod_fastcgi"
)
include "mimetypes.conf"
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"host" => "127.0.0.1",
"port" => "9000"
)
)
)
server.username = "www-data"
server.groupname = "www-data"
server.document-root = var.basedir
server.pid-file = "/run/lighttpd.pid"
server.indexfiles = ("index.php", "index.html",
"index.htm", "default.htm")
server.tag = ""
server.follow-symlink = "enable"
server.port = 8080
static-file.exclude-extensions = (".php", ".pl", ".cgi", ".fcgi")
url.access-deny = ("~", ".inc")
$HTTP["remoteip"] == "172.16.0.0/12" {
extforward.forwarder = ( "all" => "trust" )
extforward.headers = ("X-Forwarded-For")
}
$HTTP["remoteip"] == "127.0.0.1/32" {
extforward.forwarder = ( "all" => "trust" )
extforward.headers = ("X-Forwarded-For")
}