Can nginx.conf use relative paths?
chrissavery at gmail.com
Tue Aug 26 19:16:19 MSD 2008
Should work fine with files in same directory. Check your spelling and
names and file permissions because your error message here doesn't match
the contents of example file.
common.nginx.conf not same as common.conf
Sven C. Koehler wrote:
> I am just wondering whether it's possible to use relative paths in the
> nginx.conf, like:
> include common.nginx.conf;
> pid nginx.pid;
> error_log error.log;
> On Gentoo's nginx-0.7.7 I get
> /tmp/ng $ /usr/sbin/nginx -c ng.conf
> 2008/08/26 13:24:18 [emerg] 14352#0: open() "/etc/nginx/common.conf"
> failed (2: No such file or directory) in ng.conf:1
> (Common.nginx.conf is actually in the cwd.)
> Any ideas besides using absolute paths?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx