Nginx - 404 Not Found
Hi,
I installed Nginx on Ubuntu Server and set up a virtual host according to the instructions for nextcloud (link).
The login screen will appear, but after filling in the data I will get an error:
WEB
Nginx after login nextcloud
404 Not Found
nginx/1.14.0 (Ubuntu)
LOG
tail /var/log/nginx/error.log
09:53:06 [error] 17841#17841: *17 open() "/var/www/cloud/login" failed (2: No such file or directory), client: 192.168.4.21, server: ccccccc, request: "GET /login HTTP/1.1", host: "ccccccccc"
Good day,
try to fix Nginx - 404 Not Found error in virtualhost:
Then edit try_files in the file:
I installed Nginx on Ubuntu Server and set up a virtual host according to the instructions for nextcloud (link).
The login screen will appear, but after filling in the data I will get an error:
WEB
Nginx after login nextcloud
404 Not Found
nginx/1.14.0 (Ubuntu)
LOG
tail /var/log/nginx/error.log
09:53:06 [error] 17841#17841: *17 open() "/var/www/cloud/login" failed (2: No such file or directory), client: 192.168.4.21, server: ccccccc, request: "GET /login HTTP/1.1", host: "ccccccccc"
REPLY
Good day,
try to fix Nginx - 404 Not Found error in virtualhost:
vim /etc/nginx/sites-enabled/cloud
Then edit try_files in the file:
try_files $uri $uri/ /index.php?q=$uri&$args;
sudo systemctl reload nginx