Answer the question
In order to leave comments, you need to log in
Nginx + php-fpm file not found?
Tell me what's wrong, installed nginx + php-fpm, set up a file for the domain:
server {
listen 80;
server_name test;
location / {
root /var/www/html/test;
index index.php index.html index.htm;
}
location ~ \.php$ {
root /var/www/html/test/contacts.php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question