5 messages in ru.sysoev.nginxRe: Can nginx.conf use relative paths?
FromSent OnAttachments
Sven C. KoehlerAug 26, 2008 6:32 am 
Chris SaveryAug 26, 2008 8:15 am 
Sven C. KoehlerAug 26, 2008 8:45 am 
RoxisAug 26, 2008 9:03 am 
Igor SysoevAug 26, 2008 9:28 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Can nginx.conf use relative paths?Actions...
From:Sven C. Koehler (schw@public.gmane.org)
Date:Aug 26, 2008 8:45:32 am
List:ru.sysoev.nginx

On Tue, Aug 26, 2008 at 10:16:19PM +0700, Chris Savery wrote:

common.nginx.conf not same as common.conf

Ok, I fixed the spelling, but the error remains:

| /tmp/ng $ cat ng.conf | include common.conf; | pid nginx.pid; | /tmp/ng $ cat common.conf | # empty | /tmp/ng $ /usr/sbin/nginx -c ng.conf | 2008/08/26 15:32:55 [emerg] 14789#0: open() "/etc/nginx/common.conf" | failed (2: No such file or directory) in ng.conf:1 | /tmp/ng $ /usr/sbin/nginx -v | nginx version: nginx/0.7.7

The wiki documentation on http://wiki.codemongers.com/NginxMainModule#include says that "since version 0.6.7, paths are relative to directory of nginx configuration file nginx.conf, but not to nginx prefix directory." -- so could it be that nginx is broken on Gentoo?

-S.