Welcome! Log In Create A New Profile

Advanced

Conflict: index and try_files

November 18, 2011 09:39AM
In the following simple configuration

server {
server_name testsite.static;
root /some/path/;
index blog.html;
try_files $uri $uri.html =404;
}

the try_files directive seems to interfere with the index directive: I always get 404 for http://testsite.static/. If I remove the fallback part of try_files, the same request results in an error:

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

The file blog.html is present in /some/path/, so I really do not understand why the file is not found/served for the above URL.
Subject Author Posted

Conflict: index and try_files

janedenone November 18, 2011 09:39AM

Re: Conflict: index and try_files

Igor Sysoev November 18, 2011 09:44AM

Re: Conflict: index and try_files

janedenone November 18, 2011 09:46AM

Re: Conflict: index and try_files

Maxim Dounin November 18, 2011 09:52AM

Re: Conflict: index and try_files

janedenone November 22, 2011 08:55AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 323
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready