same issue nginx and nextcloud version 27.0.2.1
- installation page is correct https://ip/nextcloud
- 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;