Welcome!
Log In
Create A New Profile
Home
>
Mailing Lists
>
Nginx Mailing List - English
> Topic
Advanced
Re: How to get a 404 logged with try_files?
Previous Message
Next Message
Forum List
Message List
New Topic
Print View
monster
May 02, 2011 02:21PM
Registered: 12 years ago
Posts: 3
Found it! It must look like this, putting =404 as last location in try_files:
location ~ ^/img/[^\.]*$ {
try_files $uri.png $uri.jpg $uri.gif $uri =404;
error_page 404 /img/missing;
}
That would be useful information to put in the try_files wiki...
Reply
Quote
RSS
Subject
Author
Posted
How to get a 404 logged with try_files?
monster
May 02, 2011 10:22AM
Re: How to get a 404 logged with try_files?
monster
May 02, 2011 02:21PM
Re: How to get a 404 logged with try_files?
Igor Sysoev
May 03, 2011 08:46AM
Sorry, only registered users may post in this forum.
Click here to login
Online Users
Guests: 176
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018