2008/12/18 Anton Bogdanovitch
<poison.box@xxxxxxxxx>
Подскажите, пожалуйста, где ошибка?
server {
listen 80;
server_name .domain.com;
access_log /usr/local/www/domain.com/log/access;
error_log /usr/local/www/domain.com/log/error;
root /usr/local/www/domain.com/data;
index index.html index.htm index.php;
location / {
log_not_found off;
error_page 404 = @drupal;
}
- location = @drupal {
+ location @drupal {
fastcgi_pass unix:/tmp/php-fcgi.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param QUERY_STRING q=$request_uri;
}
location ~ \.(class|inc)$ {
deny all;
}
location ~ \.php$ {
fastcgi_pass unix:/tmp/php-fcgi.sock;
fastcgi_index index.php;
include /usr/local/etc/nginx/fastcgi.conf;
}
}