Welcome! Log In Create A New Profile

Advanced

Re: 1.6.2 selective dir logging in doc root

Maxim Dounin
October 13, 2014 06:00AM
Hello!

On Mon, Oct 13, 2014 at 03:23:09PM +1100, shmick@riseup.net wrote:

> is it possible to enable selective dir logging from the document root ?
>
> i don't want to log access to a specific dir in doc root (and not sub
> dirs also)
>
> i do want to log errors to a specific dir in doc root (and sub dirs also)
>
> purpose:
>
> disable dir logging for roundcube dir but still enable error logs

You can use access_log and error_log directives on a per-location
basis. See here for details:

http://nginx.org/r/location
http://nginx.org/r/access_log
http://nginx.org/r/error_log

--
Maxim Dounin
http://nginx.org/

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

1.6.2 selective dir logging in doc root

shmick@riseup.net October 13, 2014 12:24AM

Re: 1.6.2 selective dir logging in doc root

Maxim Dounin October 13, 2014 06:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 172
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