more informations, i am using debian squeeze &
i forgot the /etc/nginx/sites-enabled/default-site file
server {
listen 80;
server_name localhost;
root /var/www;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
# Static
location / {
index index.html index.htm index.php;
}
# PHP scripts -> PHP-FPM server listening on 127.0.0.1:9000
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
# Security
location ~ /\.ht {
deny all;
}
# Stuffs
location = /favicon.ico {
access_log off;
return 204;
}
location ~* ^.+\.(jpg|jpeg|gif|css|png|js|xml)$ {
expires 30d;
access_log off;
access_log /var/log/nginx/images.access.log;
error_log /var/log/nginx/images.error.log;
#set $memcached_key $uri;
#memcached_pass 127.0.0.1:11211;
}
}
sincerly.
Arnaud
Edited 1 time(s). Last edit at 11/01/2011 09:21AM by acognard.