Collected from the ports of nginx and php5 with php-fpm
Created a vhost for nginx
server {
server_name site1;
listen 80;
access_log /server/logs/nginx/site1.access.log;
error_log /server/logs/nginx/site1.error.log;
location ~ \\.php$ {
location 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param script_FILENAME /server/www/site1$fastcgi_script_name;
include fastcgi_params;
}
location / {
root /server/www/site1;
}
}
Added to rc.conf
nginx_enable="YES"
php_fpm_enable="YES"
Started with nginx and php-fpm
/usr/local/etc/rc.d/php-fpm start
/usr/local/etc/rc.d/nginx start
The result:
PHP page does not return anything, even if it's just text and there are no scripts. In error.log PDPA php fpmа nothing in server/logs/nginx/site1.error.log anything either.
A 200 response code.
Who can explain?
Thanks in advance.