Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#643925: [nginx] rewrite or internal redirection cycle instead 404

151 views
Skip to first unread message

Slavko

unread,
Sep 30, 2011, 5:00:02 PM9/30/11
to
Package: nginx
Version: 1.1.2-1
Severity: normal
Tags: patch

by this line in default virtual host:

try_files $uri $uri/ /index.html;

the nginx try use index.html as fallback for not existing files, but if
this page does not exists too, the server go to cycle. The server shows 500
error page instead the 404 one.

the error log shows:

rewrite or internal redirection cycle while internal redirect to "/index.html"

This can help to solve it:

server {
...
location /index.html {
rewrite ^ /index.html break;
}
...
}

regards
--
Slavko
http://slavino.sk
signature.asc
0 new messages