diff options
| author | Olexandr Skrypnyk <ukraine.sax@gmail.com> | 2012-03-22 15:34:16 +0200 |
|---|---|---|
| committer | Olexandr Skrypnyk <ukraine.sax@gmail.com> | 2012-03-22 15:34:16 +0200 |
| commit | e6153beda8527c7246565ff7deae93c766d6d2cb (patch) | |
| tree | 9a94ebe202fc794e661df746af5bccdb7148a165 /doc | |
| parent | 039b6db483fff2aaeaa19a46018232626e6a0eba (diff) | |
| download | gitlab-ce-e6153beda8527c7246565ff7deae93c766d6d2cb.tar.gz | |
replace if statement with try_files in nginx.conf
http://wiki.nginx.org/IfIsEvil
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/installation.md | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/doc/installation.md b/doc/installation.md index 823bd483ad6..615efd270a5 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; } } |
