Below my configuration file for nginx:
server {
listen 178.79.137.216:80;
server_name
www.webdorado.fr;
access_log /home/webdorado/logs/access.log;
error_log /home/webdorado/logs/error.log;
location / {
root /home/webdorado/public_html/wordpress;
index index.html index.htm;
}
location ~ \.php$ {
#if (!-f $request_filename) {
# return 404;
#}
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/webdorado/public_html/wordpress$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
}
and for the configuration of fat-cgi, I followed the instruction describes on this page
http://library.linode.com/web-servers/n ... 0.04-lucid.
#!/bin/sh
/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -C 6 -u www-data -f /usr/bin/php5-cgi