Skip to content

Commit 6bade3a

Browse files
authored
configure lighttpd to log real IP (trust haproxy) (msimerson#230)
1 parent a4bc363 commit 6bade3a

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

provision-webmail.sh

+11-4
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,26 @@ configure_lighttpd()
5959
tee "$_lighttpd_dir/vhosts.d/mail-toaster.conf" <<EO_LIGHTTPD_MT6
6060
server.modules += ( "mod_alias" )
6161
62-
alias.url = ( "/cgi-bin/" => "/usr/local/www/cgi-bin/",
63-
)
62+
alias.url = (
63+
"/cgi-bin/" => "/usr/local/www/cgi-bin/",
64+
)
6465
65-
server.modules += ( "mod_cgi" )
66+
server.modules += (
67+
"mod_cgi",
68+
"mod_fastcgi",
69+
"mod_extforward",
70+
)
6671
6772
$HTTP["url"] =~ "^/awstats/" {
6873
cgi.assign = ( "" => "/usr/bin/perl" )
6974
}
7075
$HTTP["url"] =~ "^/cgi-bin" {
7176
cgi.assign = ( "" => "" )
7277
}
78+
extforward.forwarder = (
79+
"172.16.15.12" => "trust",
80+
)
7381
74-
server.modules += ( "mod_fastcgi" )
7582
EO_LIGHTTPD_MT6
7683
}
7784

0 commit comments

Comments
 (0)