Combine lighttpd configs for IPv4 and IPv6
- by mrothe
My lighttpd.conf includes the following lines:
$SERVER["socket"] == "188.40.236.66:443" {
ssl.engine = "enable"
ssl.ca-file = "/etc/lighttpd/ssl/startcom.ca.pem"
ssl.pemfile = "/etc/lighttpd/ssl/www.unixforces.net.pem"
}
$SERVER["socket"] == "[2a01:4f8:100:30a5:0:bc28:ec43:2]:443" {
ssl.engine = "enable"
ssl.ca-file = "/etc/lighttpd/ssl/startcom.ca.pem"
ssl.pemfile = "/etc/lighttpd/ssl/www.unixforces.net.pem"
}
Is it possible to combine these two blocks into one? $SERVER["socket"] only allows for == and not =~.