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

Alexey V. Karagodov kav at karagodov.name
Sun Mar 1 05:49:14 MSK 2009


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
что не так?









nginx 0.7.38
freebsd 7.1STABLE amd64







More information about the nginx-ru mailing list