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

Igor Sysoev is at rambler-co.ru
Thu Dec 18 18:37:43 MSK 2008


On Thu, Dec 18, 2008 at 06:14:54PM +0300, Anton Bogdanovitch wrote:

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

У меня оказалась опечатка:

- location = @drupal {
+ location @drupal {

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

-- 
Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list