I have a very common but annoying error, the classical : "File not found". I have the following nginx.conf :
server {
listen 80;
server_name aperophp;
root /home/gline/mysite/web;
location = / {
try_files @site @site;
}
location / {
try_files $uri $uri/ @site;
}
location ~ \.php$ {
return 404;
}
location @site {
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param PATH_INFO $fastcgi_script_name;
}
}
But I have this file :
$ ls -ld /home/gline/mysite/web/index.php
-rw------- 1 gline gline 66 Jan 5 13:25 /home/gline/mysite/web/index.php
If you have some idea.
For your help, Thanks by advance.