nginx - gitlab wrong API path -
i have nginx config gitlab provided:
upstream gitlab { server unix:/home/git/gitlab/tmp/sockets/gitlab.socket; } server { listen 80; # e.g., listen 192.168.1.1:80; in cases *:80 idea server_name myserver; # e.g., server_name source.example.com; root /home/git/gitlab/public; # individual nginx logs gitlab vhost access_log /var/log/nginx/gitlab_access.log; error_log /var/log/nginx/gitlab_error.log; location / { # serve static files defined root folder;. # @gitlab named location upstream fallback, see below try_files $uri $uri/index.html $uri.html @gitlab; } # if file, not found in root folder requested, # proxy pass request upsteam (gitlab unicorn) location @gitlab {...
but message when push: open() "/usr/local/nginx/html/api/v3/internal/allowed" failed (2: no such file
it must "/home/git/gitlab/public/api.... how can fix it?
try changing listen *:80;
, restart nginx , see if persists.
Comments
Post a Comment