Для полноты картины вот мой nginx config:
Код: Выделить всё
server {
listen *:80;
server_name majordomo.local;
index index.html index.htm index.php;
access_log /var/log/nginx/majordomo.log;
error_log /var/log/nginx/majordomo.err;
location / {
root /var/www/majordomo;
try_files $uri $uri/ 404;
}
location ~ \.php$ {
root /var/www/majordomo;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
}
#hidden files
location ~ /\. {
access_log off;
log_not_found off;
deny all;
}
}