nginx/0.6.31 could not find named location "@drupal"

Anton Bogdanovitch poison.box at gmail.com
Thu Dec 18 18:14:54 MSK 2008


Подскажите, пожалуйста, где ошибка?

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 {
	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;
}

}






More information about the nginx-ru mailing list