Welcome! Log In Create A New Profile

Advanced

RE: "access_log" directive is not allowed here in... how to do this properly?

Micheal Wolfskill
March 25, 2012 07:42PM
> Don't write:
>
> > if ($log) { access_log /root/$log.log; slim; }
>
> Do write:
>
> access_log /root/$log.log;


I did. No errors.. but its not writing any log file at all... I think this defeats the purpose... because I only want to log for when the IP of the remote user matches any of those countries in the http {} section.




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

"access_log" directive is not allowed here in... how to do this properly?

Micheal Wolfskill March 25, 2012 03:22PM

Re: "access_log" directive is not allowed here in... how to do this properly?

Francis Daly March 25, 2012 06:34PM

RE: "access_log" directive is not allowed here in... how to do this properly?

Micheal Wolfskill March 25, 2012 06:44PM

Re: "access_log" directive is not allowed here in... how to do this properly?

Francis Daly March 25, 2012 07:10PM

RE: "access_log" directive is not allowed here in... how to do this properly?

Micheal Wolfskill March 25, 2012 07:16PM

Re: "access_log" directive is not allowed here in... how to do this properly?

Francis Daly March 25, 2012 07:22PM

RE: "access_log" directive is not allowed here in... how to do this properly?

Micheal Wolfskill March 25, 2012 07:42PM

Re: "access_log" directive is not allowed here in... how to do this properly?

Francis Daly March 25, 2012 08:06PM

Re: "access_log" directive is not allowed here in... how to do this properly?

Alexander Kolesen March 25, 2012 07:30PM

RE: "access_log" directive is not allowed here in... how to do this properly?

Micheal Wolfskill March 25, 2012 08:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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