Skip to content

Instantly share code, notes, and snippets.

@happz
Created May 19, 2012 17:16
Show Gist options
  • Save happz/2731562 to your computer and use it in GitHub Desktop.
Save happz/2731562 to your computer and use it in GitHub Desktop.
$SERVER["socket"] == "84.242.83.18:443" {
ssl.engine = "enable"
# ssl.pemfile = "/etc/lighttpd/ssl/lighttpd.pem"
ssl.pemfile = "/etc/lighttpd/ssl/key-cert.pem"
$HTTP["host"] =~ "^(mail|m).energyspots.co.nz$" {
accesslog.use-syslog = "disable"
accesslog.filename = "/var/log/lighttpd/mail.energyspots.co.nz-access.log"
url.redirect = (
"^/$" => "/owa/"
)
proxy.balance = "hash"
proxy.server = (
"" => ((
"host" => "127.0.0.1",
"port" => 65000
))
)
} else $HTTP["host"] =~ "^(tigerclaw|m).xuc.cz$" {
accesslog.use-syslog = "disable"
accesslog.filename = "/var/log/lighttpd/tigerclaw.xuc.cz-access.log"
url.redirect = (
"^/$" => "/owa/"
)
proxy.balance = "hash"
proxy.server = (
"" => ((
"host" => "127.0.0.1",
"port" => 65000
))
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment