Welcome! Log In Create A New Profile

Advanced

Re: Conflict: index and try_files

November 22, 2011 08:55AM
Thanks again for the helpful hint. I noticed that it seems to be possible to remove the $uri part –

try_files $uri/ $uri.html =404;

– and URLs like /image.jpg, /style.css etc are still found. I would expect that these requests return 404, because nginx tries image.jpg/ and then image.jpg.html, but not the actual $uri. Am I missing something?
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: 122
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready