<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">баг или фича?<br><br>имеем<br><br>error_page 403 @ERROR_PAGE_403;<br><br>location ~* /\. {<br>return 403;<br>}<br><br>location / {<br>try_files /index.html $uri $uri/ @PHP5;<br>}<br><br>location @PHP5 {<br> include include/fastcgi_param;<br> include include/error;<br> include include/error_ERROR_PAGE_404;<br> fastcgi_param SCRIPT_FILENAME $document_root/index.php5;<br> fastcgi_pass_request_body off;<br> client_body_in_file_only clean;<br> fastcgi_pass php5-cluster;<br>}<br><br>location @ERROR_PAGE_403 {<br> include include/allow_all;<br> root /srv/www/vhosts/service/error;<br> try_files /$host/403.html /$host/index.html /403.html /index.html; #да, знаю что неправильно, но работает нормально для случаев, где try_files используется только в этом location<br>}<br><br>при запрос <a href="http://gde-to.tam/test/.secret">http://gde-to.tam/test/.secret</a> и отсутствии /$host/403.html /$host/index.html /403.html получаем внутренний редирект на @PHP5, а не на index.html<br><br>если же сделать так:<br>- try_files /$host/403.html /$host/index.html /403.html /index.html;<br>+ try_files /$host/403.html /$host/index.html /403.html /index.html /index.html; # /index.html 2 раза подряд в конце <br><br>то получаем /index.html<br><br>P.S.: но в любом случае, при запросе <a href="http://gde-to.tam/test/secret">http://gde-to.tam/test/./secret</a> получаем опять @PHP5<br>я неправильно описал location?<br><br></body></html>