ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: исключения для правил



On Fri, Sep 10, 2010 at 10:15:56PM -0400, juves wrote:

> тоже самое

location / {
      index index.php index.htm index.html;
      try_files $uri $uri/ /index.php?q=$uri;
}

location = /folder/ {
     fastcgi_pass  127.0.0.1:9000;
     include       /etc/nginx/fastcgi_params.conf;
     fastcgi_param SCRIPT_FILENAME /home/htdocs/folder/index.php;
     fastcgi_param QUERY_STRING    $query_string;
}

location ~ /folder/(.+\.htm)$ {
     fastcgi_pass  127.0.0.1:9000;
     include       /etc/nginx/fastcgi_params.conf;
     fastcgi_param SCRIPT_FILENAME /home/htdocs/folder/index.php;
     fastcgi_param QUERY_STRING    id=$1;
}

location ~ \.php$ {
     fastcgi_pass  127.0.0.1:9000;
     include       /etc/nginx/fastcgi_params.conf;
     fastcgi_param SCRIPT_FILENAME /home/htdocs$fastcgi_script_name;
     fastcgi_param QUERY_STRING    $query_string;
}

Из /etc/nginx/fastcgi_params.conf нужно убрать QUERY_STRING.


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

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.