summaryrefslogtreecommitdiff
path: root/etc/lighttpd-commission.conf
diff options
context:
space:
mode:
Diffstat (limited to 'etc/lighttpd-commission.conf')
-rw-r--r--etc/lighttpd-commission.conf24
1 files changed, 15 insertions, 9 deletions
diff --git a/etc/lighttpd-commission.conf b/etc/lighttpd-commission.conf
index 5317eb5..d6ecb32 100644
--- a/etc/lighttpd-commission.conf
+++ b/etc/lighttpd-commission.conf
@@ -13,7 +13,7 @@
# - saves memory
server.modules = (
# "mod_rewrite",
-# "mod_redirect",
+ "mod_redirect",
# "mod_alias",
"mod_access",
# "mod_cml",
@@ -136,7 +136,7 @@ static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
######### Options that are good to be but not neccesary to be changed #######
## bind to port (default: 80)
-server.port = 80
+#server.port = 80
## bind to localhost (default: all interfaces)
#server.bind = "grisu.home.kneschke.de"
@@ -235,13 +235,19 @@ ssl.engine = "enable"
ssl.pemfile = "/var/config/server.pem"
$SERVER["socket"] == ":443" {
-ssl.engine = "enable"
-ssl.pemfile = "/var/config/server.pem"
-ssl.use-sslv3 = "enable"
-ssl.openssl.ssl-conf-cmd = ("Protocol" => "-ALL, -TLSv1, -SSLv3")
-server.document-root = "/www/commission"
-} else $HTTP["host"] =~ "^(.+)(:[0-9]+)?$" {
- url.redirect = ( "^/(.*)$" => "https://%1:443/$1" )
+ ssl.engine = "enable"
+ ssl.pemfile = "/var/config/server.pem"
+ ssl.use-sslv3 = "enable"
+ server.document-root = "/www/commission"
+}
+
+$SERVER["socket"] == ":80" {
+ # $HTTP["host"] =~ "(.*)" {
+ # url.redirect = ( "^/(.*)" => "https://%1/$1" )
+ # }
+ $HTTP["host"] =~ ".*" {
+ url.redirect = (".*" => "https://%0$0")
+ }
}
#### status module