remove from error_log favicon.ico

Dave Cheney dave at cheney.net
Wed Jan 14 23:38:42 MSK 2009


Another option;

location = /favicon.ico {
	return 204;
}

Cheers

Dave

On 15/01/2009, at 3:11 AM, Robert Gabriel wrote:

> Dave Cheney wrote:
>> Or even better, have a favicon. You can't stop the requests if you
>> don't have one, but if you do return a 200 response you can set
>> advisory cache headers on it.
>>
>> Cheers
>>
>> Dave
>
> Thx guys, I added what Igor said, and it works very nice. I might add
> faicon.ico to my web site, but thats not really a priority. Until then
> Igor's idea works for me :)
> -- 
> Posted via http://www.ruby-forum.com/.
>






More information about the nginx mailing list