Merge pull request #9892 from stetskevych/fix_nginx_ssl_config

Fix gitlab-ssl nginx config to work when multiple server_names are served over https
This commit is contained in:
Jacob Vosmaer 2015-12-07 14:03:33 +01:00
commit b899436248
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}