Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
omnibus-heptapod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
This instance will be upgraded to Heptapod 17.9.0rc1 on 2025-03-27 between 17:00 and 18:00 UTC+2
Show more breadcrumbs
heptapod
omnibus-heptapod
Commits
0b3bb99e5cd7
Commit
0b3bb99e5cd7
authored
7 years ago
by
Douglas Thor
Browse files
Options
Downloads
Patches
Plain Diff
Update nginx.md to address confusion in gitlab-ce#30619
parent
d854c7373e56
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/settings/nginx.md
+21
-0
21 additions, 0 deletions
doc/settings/nginx.md
with
21 additions
and
0 deletions
doc/settings/nginx.md
+
21
−
0
View file @
0b3bb99e
...
...
@@ -367,6 +367,24 @@
Run
`gitlab-ctl reconfigure`
to rewrite the NGINX configuration and restart
NGINX.
This inserts the defined string into the end of the
`server`
block of
`/var/opt/gitlab/nginx/conf/gitlab-http.conf`
.
### Notes:
+
If you're adding a new location, you might need to include
```conf
proxy_cache off;
proxy_pass http://gitlab-workhorse;
```
in the string or in the included nginx config. Without these, any sub-location
will return a 404. See
[
gitlab-ce#30619
](
https://gitlab.com/gitlab-org/gitlab-ce/issues/30619
)
.
+
You cannot add the root
`/`
location or the
`/assets`
location as those already
exist in
`gitlab-http.conf`
.
## Inserting custom settings into the NGINX config
If you need to add custom settings into the NGINX config, for example to include
...
...
@@ -380,6 +398,9 @@
Run
`gitlab-ctl reconfigure`
to rewrite the NGINX configuration and restart
NGINX.
This inserts the defined string into the end of the
`http`
block of
`/var/opt/gitlab/nginx/conf/nginx.conf`
.
## Custom error pages
You can use
`custom_error_pages`
to modify text on the default GitLab error page.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment