Непонятное поведение try_files

Igor Sysoev is at rambler-co.ru
Sun Mar 1 11:34:58 MSK 2009


On Sun, Mar 01, 2009 at 05:49:14AM +0300, Alexey V. Karagodov wrote:

> location / {
> 	try_files $uri $uri/ /index.php5;
> }
> 
>                 location                        ~* \.php5$ {
>                         include                         include/ 
> fastcgi_param;
>                         include                         include/error;
>                         fastcgi_index                   index.php5;
>                         fastcgi_pass_request_body       off;
>                         client_body_in_file_only        clean;
>                         fastcgi_pass                    127.0.0.1:9005;
>                 }
> 
> при отсутствии всего перечисленного  
> получаем внутренний редирект на /index.php5  
> и его последующую нормальную  
> обработку ( /index.php5 в $document_root существует  
> и доступен )
> 
> location / {
> 	try_files $uri $uri/ /index.php5 что- 
> либо_ещё_в_любых_количествах;
> }
> 
>                 location                        ~* \.php5$ {
>                         include                         include/ 
> fastcgi_param;
>                         include                         include/error;
>                         fastcgi_index                   index.php5;
>                         fastcgi_pass_request_body       off;
>                         client_body_in_file_only        clean;
>                         fastcgi_pass                    127.0.0.1:9005;
>                 }
> 
> а в таком варианте конфига получаем  
> содержимое /index.php5
> что не так?

Максим уже ответил, а я лишь хочу сказать, что с каждым днём я всё больше
понимаю Гвидо ван Россума.


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





More information about the nginx-ru mailing list