Merge pull request #73 from oe1rfc/master
authorAaron Zauner <azet@azet.org>
Mon, 6 Oct 2014 00:17:08 +0000 (02:17 +0200)
committerAaron Zauner <azet@azet.org>
Mon, 6 Oct 2014 00:17:08 +0000 (02:17 +0200)
nginx/https-redirect: redirect to request domain, ditch regex

src/configuration/Webservers/nginx/default-hsts

index 0824740..a50136c 100644 (file)
@@ -26,7 +26,7 @@ server {
 
        # Make site accessible from http://localhost/
        server_name localhost;
-       rewrite        ^ https://$server_name$request_uri? permanent;
+       return 301 https://$host$request_uri;
 }