diff options
| author | Achilleas Pipinellis <axilleas@axilleas.me> | 2016-02-22 02:49:02 +0200 |
|---|---|---|
| committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-01-31 22:55:29 +0000 |
| commit | 84ff07cdcc846cec7a58aca641363531cda86d92 (patch) | |
| tree | fb3bc686dc5cd22eb387092e0efccec7fa633a4b /doc/pages/administration.md | |
| parent | d9e3bb0e7def068c5b24937bf887b20784d4bd8e (diff) | |
| download | gitlab-ce-84ff07cdcc846cec7a58aca641363531cda86d92.tar.gz | |
Simplify NGINX server_name regex
Diffstat (limited to 'doc/pages/administration.md')
| -rw-r--r-- | doc/pages/administration.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/pages/administration.md b/doc/pages/administration.md index f67bb63ff07..30d2b46c36a 100644 --- a/doc/pages/administration.md +++ b/doc/pages/administration.md @@ -414,20 +414,20 @@ not remove the backslashes. If your GitLab pages domain is `example.io`, replace: ```bash -server_name ~^(?<group>.*)\.YOUR_GITLAB_PAGES\.DOMAIN$; +server_name ~^.*\.YOUR_GITLAB_PAGES\.DOMAIN$; ``` with: ``` -server_name ~^(?<group>.*)\.example\.io$; +server_name ~^.*\.example\.io$; ``` -If you are using a subdomain, make sure to escape all dots (`.`) with a -backslash (\). For example `pages.example.io` would be: +If you are using a subdomain, make sure to escape all dots (`.`) except from +the first one with a backslash (\). For example `pages.example.io` would be: ``` -server_name ~^(?<group>.*)\.pages\.example\.io$; +server_name ~^.*\.pages\.example\.io$; ``` ## Set maximum pages size |
