change nginx config to $server_name
[ach-master.git] / src / configuration / Webservers / nginx / default-hsts
index befa886..b6745ac 100644 (file)
@@ -26,7 +26,7 @@ server {
 
        # Make site accessible from http://localhost/
        server_name localhost;
-       return 301 https://www.domain.com$request_uri;
+       return 301 https://$server_name$request_uri;
 }