Commit 2c6a8525 authored by Kamil Trzcinski's avatar Kamil Trzcinski Committed by James Edwards-Jones

Refer to server_name with regex

parent e9e8a2f6
......@@ -80,11 +80,16 @@ See the relevant documentation at <http://doc.gitlab.com/omnibus/settings/pages.
with
```
server_name *.gitlab.io;
server_name ~^(?<group>.*)\.gitlabpages\.com$;
```
You must be add `*` in front of your domain, this is required to catch all
subdomains of `gitlab.io`.
You must be extra careful to not remove the backslashes. If you are using
a subdomain, make sure to escape all dots (`.`) with a backslash (\).
For example `pages.gitlab.io` would be:
```
server_name ~^(?<group>.*)\.pages\.gitlab\.io$;
```
1. Restart Nginx and GitLab:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment