I
I
Ingerniated2017-06-08 01:20:08
Nginx
Ingerniated, 2017-06-08 01:20:08

Why doesn't it see files in a different directory or is the format wrong?

Why does nginx not open the page when you specify the path root /home/user/nginx/
where the index.php files are located, error 403
And when you specify /root/var/www/html index.nginx-debain.html everything displays

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Wolf, 2017-06-08
@Ingernirated

I suspect that there is a permissions problem and Nginx is not allowed to read the index.php file. And if this page should be displayed not by Nginx, but by a PHP interpreter - perhaps the access rights do not allow it to read this page.
Try replacing "index.php" with "index.html" or "index.nginx-debain.html", it should more likely help.
PS For error monitoring, in *nix programs, and in Nginx in particular, there are such things as "error log" and "access log".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question