Need some help with rewrite rule translation

mailinglisten at simonhoenscheid.de mailinglisten at simonhoenscheid.de
Fri Jun 14 07:58:12 UTC 2013


Both solutions look interesting, I will have a look on it.
Am 13.06.2013 23:01, schrieb B.R.:
> On Thu, Jun 13, 2013 at 4:51 PM, Jonathan Matthews
> <contact at jpluscplusm.com> wrote:
> 
> On 13 June 2013 09:38,  <mailinglisten at simonhoenscheid.de> wrote:
> [snip]
> RewriteRule ^favicon.ico$ - [R=404,L]
> 
> location /(^favicon)/(.*.(ico)) {
> return 404;
> 
> Don't do that. You're only hurting yourself. Just return an empty gif
> (http://wiki.nginx.org/HttpEmptyGifModule [1]) or ico/etc equivalent.
> 
>> You could also do that:
> location /favicon.ico {
>     return 204;
>     access_log      off;
>     log_not_found   off;
> }​
> 
> Jonathan
> --
> Jonathan Matthews // Oxford, London, UK
> http://www.jpluscplusm.com/contact.html [2]
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx [3]
> ---
> B. R.
> 
> Links:
> ------
> [1] http://wiki.nginx.org/HttpEmptyGifModule
> [2] http://www.jpluscplusm.com/contact.html
> [3] http://mailman.nginx.org/mailman/listinfo/nginx
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list