Welcome! Log In Create A New Profile

Advanced

Re: access log off nginx not working ?

Valentin V. Bartenev
July 07, 2012 11:52AM
On Saturday 07 July 2012 17:52:52 gyre007 wrote:
[...]
> The problem with this configuration is that the drop.conf file is
> completely "ignored" because of what you said - so when I take
> error_page bit out then drop.conf file is suddenly taken into account
> and favicon.ico is no longer being logged. The question is how do I
> handle this situation -> return 404 page when someone is accessing non
> existing PHP URI and at the same time disable logging as per drop.conf
> file ? Im banging my head against the table.
> Any help appreciated.
>

error_page 404 /errors/404.html;

location /errors/ {
internal;
root /var/www;
}

location /errors/nolog/ {
internal;
alias /var/www/errors/;
access_log off;
}

location = /favicon.ico {
error_page 404 /errors/nolog/404.html;
log_not_found off;
}

etc...

wbr, Valentin V. Bartenev

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

access log off nginx not working ?

gyre007 July 06, 2012 07:45PM

Re: access log off nginx not working ?

Maxim Dounin July 07, 2012 03:24AM

Re: access log off nginx not working ?

gyre007 July 07, 2012 09:52AM

Re: access log off nginx not working ?

Valentin V. Bartenev July 07, 2012 11:52AM

Re: access log off nginx not working ?

Ruslan Ermilov July 12, 2012 09:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 161
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready