NC27 Nginx 404 Not found after first login

same issue nginx and nextcloud version

  1. installation page is correct https://ip/nextcloud
  2. After installation i’m redirect to http://ip/nextcloud/apps/dashboard/ and error 403 forbidden

redirect issue I think but why?
web folder: /var/www/xxxxxx/nextcloud/

server {
listen 80;
listen [::]:80;
server_name nnn;

# Prevent nginx HTTP Server Detection
server_tokens off;

# Enforce HTTPS just for `/nextcloud`
location /nextcloud {
    return 301 https://$server_name$request_uri;


server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name nnn;

# Path to the root of the domain
root /var/www/xxxxxxx;

Even the issue looks similar I doubt your installation details are the same as 2 year old post - for this reason moved to new thread.

looks like NC is not aware of it’s hostname and https - are you running behind reverse proxy?

Please provide configuration details and logs from the browser and Nginx and Nextcloud.