Can nginx.conf use relative paths?

Sven C. Koehler schween at snafu.de
Tue Aug 26 17:32:34 MSD 2008


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





More information about the nginx mailing list