php fastcgi process connect to nginx server
server {
listen 80;
server_name theos.in www.theos.in;
access_log /var/log/nginx/theos.in/access.log main;
location / {
root /home/www/theos.in/http;
index index.php index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/local/www/nginx-dist;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/www/theos.in/http$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}