1
我從gitlab nginx的配置提供:gitlab錯誤的API路徑
upstream gitlab {
server unix:/home/git/gitlab/tmp/sockets/gitlab.socket;
}
server {
listen 80; # e.g., listen 192.168.1.1:80; In most cases *:80 is a good idea
server_name myserver; # e.g., server_name source.example.com;
root /home/git/gitlab/public;
# individual nginx logs for this gitlab vhost
access_log /var/log/nginx/gitlab_access.log;
error_log /var/log/nginx/gitlab_error.log;
location/{
# serve static files from defined root folder;.
# @gitlab is a named location for the upstream fallback, see below
try_files $uri $uri/index.html $uri.html @gitlab;
}
# if a file, which is not found in the root folder is requested,
# then the proxy pass the request to the upsteam (gitlab unicorn)
location @gitlab {...
但我得到這個消息時推: 的open()「在/ usr /本地/ nginx的/ HTML/API/V3 /內部/允許 「失敗(2:沒有這樣的文件
它必須是」/家/的git/gitlab /公/ API .... 我怎樣才能解決這個問題
謝謝! 我已經修改了通過改變彪馬配置到TCP端口9292實例使用unix套接字。 – kju
@monkey記得要接受答案,或者如果問題解決了,請自己創建答案。 – spuder