Browse Source

Use $server_name instead of hardcoded domain.

Billy Zhou 5 years ago
parent
commit
5caaaeb2bd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/nginx/zammad_ssl.conf

+ 1 - 1
contrib/nginx/zammad_ssl.conf

@@ -28,7 +28,7 @@ server {
     root /var/www/html;
   }
 
-  return 301 https://example.com$request_uri;
+  return 301 https://$server_name$request_uri;
 
 }