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
iv
gitlab-ce
Commits
6af33483
Commit
6af33483
authored
Mar 23, 2012
by
Ariejan de Vroom
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #576 from sxua/master
Need to replace If statement with try_files in nginx.conf
parents
fa8219e0
e6153bed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
doc/installation.md
doc/installation.md
+5
-9
No files found.
doc/installation.md
View file @
6af33483
...
@@ -220,15 +220,11 @@ Edit /etc/nginx/nginx.conf. Add next code to **http** section:
...
@@ -220,15 +220,11 @@ Edit /etc/nginx/nginx.conf. Add next code to **http** section:
server {
server {
listen 80;
listen 80;
server_name mygitlab.com;
server_name mygitlab.com;
location / {
root /home/gitlab/gitlab/public;
root /home/gitlab/gitlab/public;
try_files $uri $uri/index.html $uri.html @gitlab;
if (!-f $request_filename)
{
location @gitlab
{
proxy_pass http://gitlab;
proxy_pass http://gitlab;
break;
}
}
}
}
}
...
...
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