Need some help with rewrite rule translation
Mark Alan
m6rkalan at gmail.com
Fri Jun 14 09:15:02 UTC 2013
On Fri, 14 Jun 2013 09:58:12 +0200, mailinglisten at simonhoenscheid.de
wrote:
> Both solutions look interesting, I will have a look on it.
We use been successfully the "return no content=204" opiton:
location = /favicon.ico { access_log off; log_not_found off; expires
30d; try_files /sites/$server_name/files/favicon.ico $uri =204; }
Meaning that try_files first looks in a directory where we usually keep
favicon.ico and logos (.png, .jpg, etc.), then it tries the user
provied $uri and, if it does not find any then thows out a "no content"
code (204).
There is no need to load one more module (Empty Gif Module) just to do
that.
M.
More information about the nginx
mailing list