Welcome! Log In Create A New Profile

Advanced

Re: Feature request to "access_log" directive

Fabiano Furtado Pessoa Coelho
April 12, 2022 10:56AM
Thank you very much, Francis!

Indeed, it was a permission issue on the filesystem.

Again, my bad! Sorry to bother this mailing list with this basic issue.

On Tue, Apr 12, 2022 at 8:22 AM Francis Daly <francis@daoine.org> wrote:
>
> On Mon, Apr 11, 2022 at 10:02:40AM -0300, Fabiano Furtado Pessoa Coelho wrote:
>
> Hi there,
>
> > I've one more question about an access_log weird behavior, when it's
> > configured with a $1 regex return variable.
>
> http://nginx.org/r/access_log -- The file path can contain variables
>
> > For instance:
> >
> > location ~ ^/(system1|system2) {
> > access_log /var/log/nginx/$1_access.log;
> > proxy_pass ...;
> > }
> >
> > The only way NGINX can write to system1_access.log and
> > system2_access.log files is when they exist in the specified
> > directory. Otherwise, the log isn't computed.
>
> My guess is that
>
> """
> the user whose credentials are used by worker processes should have
> permissions to create files in a directory with such logs;
> """
>
> is not the case.
>
> $ ls -ld /var/log/nginx/
> $ ls -l /var/log/nginx/system1_access.log
>
> might show the users and permissions involved.
>
> Good luck with it,
>
> f
> --
> Francis Daly francis@daoine.org
> _______________________________________________
> nginx mailing list -- nginx@nginx.org
> To unsubscribe send an email to nginx-leave@nginx.org
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

Feature request to "access_log" directive

Fabiano Furtado Pessoa Coelho April 04, 2022 03:34PM

Re: Feature request to "access_log" directive

Francis Daly April 09, 2022 02:56AM

Re: Feature request to "access_log" directive

Fabiano Furtado Pessoa Coelho April 11, 2022 09:08AM

Re: Feature request to "access_log" directive

Francis Daly April 12, 2022 07:24AM

Re: Feature request to "access_log" directive

Fabiano Furtado Pessoa Coelho April 12, 2022 10:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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