diff --git a/lighttpd/rlgallery-ssl.conf b/lighttpd/rlgallery-ssl.conf index ab7c580..44bbfdc 100644 --- a/lighttpd/rlgallery-ssl.conf +++ b/lighttpd/rlgallery-ssl.conf @@ -1,7 +1,15 @@ # Lighttpd SSL configuration for rlgallery.org # Include in the main lighttpd configuration file -$SERVER["socket"] == ":443" { +server.modules += ( "mod_openssl" ) + +$SERVER["socket"] == "0.0.0.0:443" { + ssl.engine = "enable" + ssl.pemfile = "/etc/lighttpd/ssl/host.pem" + ssl.ca-file = "/etc/lighttpd/ssl/chain.pem" +} + +$SERVER["socket"] == "[::]:443" { ssl.engine = "enable" ssl.pemfile = "/etc/lighttpd/ssl/host.pem" ssl.ca-file = "/etc/lighttpd/ssl/chain.pem" diff --git a/lighttpd/rlgallery.conf b/lighttpd/rlgallery.conf index c423179..0fff2db 100644 --- a/lighttpd/rlgallery.conf +++ b/lighttpd/rlgallery.conf @@ -1,6 +1,10 @@ # lighttpd configuration file for rlgallery.org # Include this file in your lighttpd.conf +# IPv4 and IPv6 addresses need to be explicitly specified +server.bind = "0.0.0.0" +$SERVER["socket"] == "[::]:80" { } + # Ensure index.cgi is in the list index-file.names += ( "index.xhtml", "index.html", "index.htm", "index.cgi" @@ -35,3 +39,4 @@ $HTTP["url"] =~ "^/files/" { $HTTP["url"] =~ "^/ttyrecs/" { dir-listing.activate = "enable" } +