13 messages in ru.sysoev.nginxRe: Daemon directory string
FromSent OnAttachments
TinyApps.OrgJul 15, 2009 9:25 am 
Gena MakhomedJul 15, 2009 10:02 am 
TinyApps.OrgJul 15, 2009 10:26 am 
Gena MakhomedJul 15, 2009 11:06 am 
Marcus ClyneJul 15, 2009 12:13 pm 
Maxim DouninJul 15, 2009 12:37 pm 
Marcus ClyneJul 15, 2009 3:27 pm 
Marcus ClyneJul 15, 2009 4:25 pm 
Maxim DouninJul 15, 2009 6:20 pm 
TinyApps.OrgJul 16, 2009 12:45 am 
Marcus ClyneJul 16, 2009 5:52 am 
AMP AdminAug 14, 2009 9:59 pm 
Cliff WellsAug 15, 2009 10:38 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: Daemon directory stringActions...
From:Marcus Clyne (macc@gmail.com)
Date:Jul 16, 2009 5:52:20 am
List:ru.sysoev.nginx

Maxim Dounin wrote:

Hello!

On Thu, Jul 16, 2009 at 02:25:28AM +0300, Marcus Clyne wrote:

Hi,

What's the best way to get the path of the directory that nginx was called from (as part of module development)? Is this stored in a string somewhere?

No. You should use ngx_conf_full_name() to resolve paths to absolute ones. It uses cycle->prefix (or cycle->conf_prefix), and this in turn is set to startup directory if there is no prefix (either compiled in or specified via -p switch).

Thanks.