Welcome! Log In Create A New Profile

Advanced

Re: Incorrect log location error

May 05, 2019 07:20PM
I was able to resolve this, but I am not sure exactly why. To simplify my post, I removed the code that sets a variable for the base path. That's where the problem is.

set $homedir /webspace/mydomain.com;
root ${homedir}/www;
access_log ${homedir}/log/access.log;

The root works, but access_log did not. NGINX would prepend /usr/share/nginx/ to it every time and result in the error from my original post.

If I don't use the variable, it works fine.

access_log /webspace/mydomain.com/log/access.log;

It kind of defeats the purpose of having a variable, but at least it is working now.
Subject Author Posted

Incorrect log location error

spraguey May 05, 2019 10:33AM

Re: Incorrect log location error

daBee May 05, 2019 07:02PM

Re: Incorrect log location error

spraguey May 05, 2019 07:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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