Not logging access to favicon.ico
Agus
agus.262 at gmail.com
Thu Jan 17 22:53:32 UTC 2013
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.
2013/1/17 Mik J <mikydevel at yahoo.fr>
> Hello,
>
>
> I'm really new to Nginx so forgive me if this question seems obvious to
> you.
>
> I have Nginx with virtual hosts. In my nginx.conf I have
> http {
> ...
> include /etc/nginx/sites-enabled/*;
> ...
>
> In /etc/nginx/sites-enabled/ I have my configuration such as default
>
> server {
> listen 80 default_server;
> server_name _;
> index index.html;
> root /var/nginx/html;
> access_log /var/log/nginx/default.access.log;
> }
>
>
> I would like all my virtual hosts to have some global properties such as
> location = /favicon.ico {
> return 204;
> access_log off;
> log_not_found off;
> }
> so that I won't log access and errors relative to favicon.ico
>
> But it's not clear to me, where I should put this statement in order to
> have a minimalistic configuration.
>
>
> Thank you
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130117/b228402e/attachment.html>
More information about the nginx
mailing list