diff --git a/doc/installation.md b/doc/installation.md index 823bd483..615efd27 100644 --- a/doc/installation.md +++ b/doc/installation.md @@ -220,15 +220,11 @@ Edit /etc/nginx/nginx.conf. Add next code to **http** section: server { listen 80; server_name mygitlab.com; - - location / { - - root /home/gitlab/gitlab/public; - - if (!-f $request_filename) { - proxy_pass http://gitlab; - break; - } + root /home/gitlab/gitlab/public; + try_files $uri $uri/index.html $uri.html @gitlab; + + location @gitlab { + proxy_pass http://gitlab; } }