summaryrefslogtreecommitdiff
path: root/lib/support/nginx/gitlab-pages-ssl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/support/nginx/gitlab-pages-ssl')
-rw-r--r--lib/support/nginx/gitlab-pages-ssl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/support/nginx/gitlab-pages-ssl b/lib/support/nginx/gitlab-pages-ssl
index 16edd337e10..a1ccf266835 100644
--- a/lib/support/nginx/gitlab-pages-ssl
+++ b/lib/support/nginx/gitlab-pages-ssl
@@ -11,7 +11,7 @@ server {
listen [::]:80 ipv6only=on;
## Replace this with something like pages.gitlab.com
- server_name ~^(?<group>.*)\.YOUR_GITLAB_PAGES\.DOMAIN$;
+ server_name ~^.*\.YOUR_GITLAB_PAGES\.DOMAIN$;
server_tokens off; ## Don't show the nginx version number, a security best practice
return 301 https://$http_host$request_uri;
@@ -26,7 +26,7 @@ server {
listen [::]:443 ipv6only=on ssl http2;
## Replace this with something like pages.gitlab.com
- server_name ~^(?<group>.*)\.YOUR_GITLAB_PAGES\.DOMAIN$;
+ server_name ~^.*\.YOUR_GITLAB_PAGES\.DOMAIN$;
server_tokens off; ## Don't show the nginx version number, a security best practice
## Strong SSL Security