diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-12-18 13:09:14 +0100 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-01-31 22:53:56 +0000 |
commit | 2c6a852529cc42507e45d1266489df491ef1b893 (patch) | |
tree | 3a43e34eca55e1b34a5bfa9e177ca0de0fd69184 /doc/pages/administration.md | |
parent | e9e8a2f60811c460d0bb850da2bb35ea43e35698 (diff) | |
download | gitlab-ce-2c6a852529cc42507e45d1266489df491ef1b893.tar.gz |
Refer to server_name with regex
Diffstat (limited to 'doc/pages/administration.md')
-rw-r--r-- | doc/pages/administration.md | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/doc/pages/administration.md b/doc/pages/administration.md index b1ef2cebb14..9c24fee4f1a 100644 --- a/doc/pages/administration.md +++ b/doc/pages/administration.md @@ -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: |