Can nginx.conf use relative paths?
Chris Savery
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:
> Hello,
>
> I am just wondering whether it's possible to use relative paths in the
> nginx.conf, like:
>
> [ng.conf]
> 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?
>
> Best,
>
> Sven
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080826/8d88fe27/attachment.html>
More information about the nginx
mailing list