Welcome! Log In Create A New Profile

Advanced

Re: Not logging access to favicon.ico

Jonathan Matthews
January 17, 2013 06:24PM
On 17 January 2013 22:53, Agus <agus.262@gmail.com> wrote:
> location is only available in server block. Though you could create a file
> with the location /favicon... and then include it in every server block
> which will save you typing.

I do this. I'm /sure/ I've seen some historic user-agents requesting
"favico.ico" or something like that, so I place it under a location of
just /favico.

Mik - you may find that a 204 is not what you want to return, as
browsers /may/ not cache such a 0-byte file for the favicon. I use
this, and include it in every server{} stanza:

location /favico {
access_log off;
error_log /dev/null crit;
empty_gif;
}

I'm fully aware it doesn't work on IE, due to IE only supporting
properly-formed Icon format files; fuck those guys.

Cheers,
Jonathan
--
Jonathan Matthews // Oxford, London, UK
http://www.jpluscplusm.com/contact.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Not logging access to favicon.ico

miky January 17, 2013 04:38PM

Re: Not logging access to favicon.ico

Agus January 17, 2013 05:54PM

Re: Not logging access to favicon.ico

Jonathan Matthews January 17, 2013 06:24PM

Re: Not logging access to favicon.ico

miky January 18, 2013 03:02AM

Re: Not logging access to favicon.ico

Mark Alan January 18, 2013 06:10AM

答复: Not logging access to favicon.ico

cfsego January 22, 2013 10:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 110
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready