Hello,
In short, I’m facing a 404 Not found error when trying to access my just freshly installed nextcloud instance, accessible from https://nonohassio.duckdns.org/index.php/login
With more details, I’m running a debian 12 with Nginx (and mariadb); I first installed it locally before adding the domain nonohassio.duckdns.org
.
nonohassio.duckdns.org
is configured to point to my box which redirects port 80 and 443 to the raspberry running nextcloud.
Nextcloud has been unpacked to /var/www/nextcloud
which is owned by www-data:www-data . The installation has been performed from the command line utility occ. It was displayed the installation was successful.
PHP is correctly running. You can see it from the phpinfo page I created on the server : https://nonohassio.duckdns.org/phpinfo.php
I setup the nginx configuration and then ran certbot from let’s encrypt to add a SSL certificate. The final nginx configuration file, as edited by certbot is :
server {
root /var/www/nextcloud;
server_name nonohassio.duckdns.org;
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/nonohassio.duckdns.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/nonohassio.duckdns.org/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = nonohassio.duckdns.org) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name nonohassio.duckdns.org;
return 404; # managed by Certbot
}
Do you have any idea what is wrong ?
Thank you for your help.