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:16PM
Hello Francis,

> Put a line like
>
> access_log logs/$log.log;
>
> inside the server{} block.
>

I did, iam still getting the error.
[emerg]: "access_log" directive is not allowed here in /etc/nginx/nginx.conf:55

The line 55 is: if ($log) { access_log /root/$log.log; slim; }

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
SubjectAuthorPosted

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

Micheal WolfskillMarch 25, 2012 03:22PM

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

Francis DalyMarch 25, 2012 06:34PM

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

Micheal WolfskillMarch 25, 2012 06:44PM

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

Francis DalyMarch 25, 2012 07:10PM

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

Micheal WolfskillMarch 25, 2012 07:16PM

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

Francis DalyMarch 25, 2012 07:22PM

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

Micheal WolfskillMarch 25, 2012 07:42PM

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

Francis DalyMarch 25, 2012 08:06PM

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

Alexander KolesenMarch 25, 2012 07:30PM

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

Micheal WolfskillMarch 25, 2012 08:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 50
Record Number of Users: 5 on May 17, 2013
Record Number of Guests: 138 on May 16, 2013
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready