<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Helvetica, Arial, sans-serif">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.<br>
common.nginx.conf not same as common.conf<br>
<br>
</font><br>
Sven C. Koehler wrote:
<blockquote cite="mid:20080826133234.GB8419@oemcomputer.oerks.de"
 type="cite">
  <pre wrap="">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


  </pre>
</blockquote>
</body>
</html>