Now when I call my domain, I get this error in my errorlog: 2477#0: *2475 directory index of “/var/www/vhosts/subDomainName/” is forbidden - nginx error
In my browser I only see 403- Forbidden. - nginx
When I try to call: myDomain.tld/index.php It tells me “File not found” - No 404.html errorpage by gitlab
When I call myDomain.tld/404.html or myDomain.tld/deploy.html - I get the correct html page, what I can find and edit in this folder: /opt/gitlab/embedded/service/gitlab-rails/public
Please, can somebody help me with this problem?
I think it is not a big problem anymore, but I do not know where to look for it. I have tried many instructions to follow.
In my thread you wrote that you are getting a “Too many redirects”-error. Did you tried to delete the cookies? I once had similar issues and deleting the cookies fixed the problem.
If this does not do the trick, please provide us with your full nginx vhost config (you may change your domain name )…
Also I try to use gitlab as subdomain od my domain (gitlab.domain.tld).
I created symlinks in /etc/gitlab/ssl to my certificates. My SSL Certificate works fine, for m domain and for my subdomain and for gitlab.
gitlab.domain.tld.crt => /opt/psa/var/modules/letsencrypt/etc/archive/gitlab.domain.tld/cert1.pem
gitlab.domain.tld.key => /opt/psa/var/modules/letsencrypt/etc/archive/gitlab.domain.tld/privkey1.pem
When I calles gitlab.domain.tld/notExistingFile.html
It redirected me to login (gitlab.domain.tld/users/sign_in)
So I was already able to create my administrator account,
also set the password for it.
After Login I received only 404 error pages.
Then I opend the site in another browser, see login page.
After success Login I received only 404 error pages.
For a few days I have tried many things and advice.
But I’m just coming from one mistake to another.
I can not remember with which configuration I at least could log on.
Acctually I get this error: 502 Bad Gateway - nginx
upstream gitlab {
# for omnibus installation
server unix:/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket;
}
In Plesk
Plesk => Domain => Apache & nginx Settings => Common Apache settings, everything is set to default
Plesk => Domain => Apache & nginx Settings => Restrict the ability to follow symbolic links is not checked
Plesk => Domain => Apache & nginx Settings => Proxy mode is checked
Plesk => Domain => Apache & nginx Settings => Additional nginx directives
location ~ / {
# for omnibus installation
root /opt/gitlab/embedded/service/gitlab-rails/public;
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 {
proxy_read_timeout 300; # https://github.com/gitlabhq/gitlabhq/issues/694
proxy_connect_timeout 300; # https://github.com/gitlabhq/gitlabhq/issues/694
proxy_redirect off;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://gitlab;
}
And thank you very much, you are the first who try to help me.
I found the solution. The error occurred because Plesk PHP support was enabled for my virtual host. I disabled the PHP support in the PHP settings. After that, everything worked fine.