Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
38028d92
Commit
38028d92
authored
Dec 17, 2015
by
Achilleas Pipinellis
Committed by
James Edwards-Jones
Jan 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add example when using a subdomain [ci skip]
parent
a60f5f6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
doc/pages/administration.md
doc/pages/administration.md
+12
-4
No files found.
doc/pages/administration.md
View file @
38028d92
...
...
@@ -45,7 +45,8 @@ See the relevant documentation at <http://doc.gitlab.com/omnibus/settings/pages.
cd /home/git/gitlab
```
1.
Edit
`gitlab.yml`
and under the
`pages`
setting, set
`enabled`
to
`true`
:
1.
Edit
`gitlab.yml`
and under the
`pages`
setting, set
`enabled`
to
`true`
and
the
`host`
to the FQDN under which GitLab Pages will be served:
```bash
## GitLab Pages
...
...
@@ -82,7 +83,13 @@ See the relevant documentation at <http://doc.gitlab.com/omnibus/settings/pages.
server_name ~^(?<group>.*)\.gitlabpages\.com$;
```
You must be extra careful to not remove the backslashes.
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:
...
...
@@ -108,7 +115,7 @@ required.
# The domain under which the pages are served:
# http://group.example.com/project
# or project path can be a group page: group.example.com
host:
gitlabpages
.com
host:
example
.com
port: 443 # Set to 443 if you serve the pages with HTTPS
https: true # Set to true if you serve the pages with HTTPS
```
...
...
@@ -120,7 +127,8 @@ required.
```
Make sure to edit the config to add your domain as well as correctly point
to the right location where the SSL certificates reside.
to the right location where the SSL certificates reside. After all changes
restart Nginx.
## Set maximum pages size
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment