Commit 6af33483 authored by Ariejan de Vroom's avatar Ariejan de Vroom

Merge pull request #576 from sxua/master

Need to replace If statement with try_files in nginx.conf
parents fa8219e0 e6153bed
...@@ -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;
root /home/gitlab/gitlab/public;
location / { try_files $uri $uri/index.html $uri.html @gitlab;
root /home/gitlab/gitlab/public; location @gitlab {
proxy_pass http://gitlab;
if (!-f $request_filename) {
proxy_pass http://gitlab;
break;
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment