summaryrefslogtreecommitdiff
path: root/lib/support
diff options
context:
space:
mode:
authorVyacheslav Stetskevych <stetskevych@gmail.com>2015-12-06 03:10:29 +0200
committerVyacheslav Stetskevych <stetskevych@gmail.com>2015-12-06 03:10:29 +0200
commit1c4213acd5dde6ce44a70b79dd766e9e7f8b59b4 (patch)
treed36df691774028dac44538d25767d578b456aa68 /lib/support
parent4294d2cdff816642a6e259ce59ce0730bf125ca7 (diff)
downloadgitlab-ce-1c4213acd5dde6ce44a70b79dd766e9e7f8b59b4.tar.gz
Fix gitlab-ssl nginx config to work when multiple server_names are served over https
Diffstat (limited to 'lib/support')
-rw-r--r--lib/support/nginx/gitlab-ssl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/support/nginx/gitlab-ssl b/lib/support/nginx/gitlab-ssl
index 016f7a536fb..79fe1474821 100644
--- a/lib/support/nginx/gitlab-ssl
+++ b/lib/support/nginx/gitlab-ssl
@@ -56,7 +56,7 @@ server {
listen [::]:80 ipv6only=on default_server;
server_name YOUR_SERVER_FQDN; ## Replace this with something like gitlab.example.com
server_tokens off; ## Don't show the nginx version number, a security best practice
- return 301 https://$server_name$request_uri;
+ return 301 https://$http_host$request_uri;
access_log /var/log/nginx/gitlab_access.log;
error_log /var/log/nginx/gitlab_error.log;
}