nginx-0.7.52

diogin nginx-forum at nginx.us
Wed Apr 22 16:09:30 MSD 2009


Igor Sysoev Wrote:
-------------------------------------------------------
> On Wed, Apr 22, 2009 at 02:47:01AM -0400, diogin
> wrote:
>
> Currently - yes. Probabaly, in next versions I
> will remove prefix at all
> and nginx will get nginx.conf from the current
> directory.
> 
> Right now you may set full path in nginx.conf and
> run nginx as
> 
> nginx -c d:/nginx1/nginx.conf
> 
> To control you need to set path to conf file,
> too:
> 
> nginx -s reload -c d:/nginx1/nginx.conf

Hello Igor,

I just unzip the nginx-0.7.52.zip as D:/nginx1, and then change dir to D:/nginx1:

D:\nginx1>dir

2009-04-22  19:53              .
2009-04-22  19:53              ..
2009-04-20  10:28              conf
2009-04-20  10:28              contrib
2009-04-20  10:28              docs
2009-04-20  10:28              html
2009-04-20  10:28              logs
2009-04-20  10:24         1,249,280 nginx.exe
2009-04-20  10:28              temp

D:\nginx1>nginx -c D:/nginx1/conf/nginx.conf

D:\nginx1>

Nothing happens, nginx exits without any warning. I checked my system event log and found an error:

"D:\nginx1\nginx.exe: Could not open error log file: CreateFile() "c:/nginx/logs/error.log" failed"

So nginx uses the default path "c:/nginx" before it reads the paths from nginx.conf? Is there any chance that I can specify all the paths (i.e. temp, logs, etc) in the configuration file?
Thanks very much :-)

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,1199,1336#msg-1336






More information about the nginx mailing list