提交 6af33483 编写于 作者: A Ariejan de Vroom

Merge pull request #576 from sxua/master

Need to replace If statement with try_files in nginx.conf
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册