# Nginx-0.7.52

**URL:** <https://www.ruby-forum.com/t/nginx-0-7-52/165942>\
**Category:** NGINX\
**Created:** [April 20, 2009, 8:46am UTC](https://www.ruby-forum.com/t/nginx-0-7-52/165942 "2009-04-20T08:46:34Z")\
**Posts on this page:** 4\
**Page:** 3

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [April 23, 2009, 2:17am UTC](https://www.ruby-forum.com/t/nginx-0-7-52/165942/41 "2009-04-23T02:17:22Z")

</div>

On Wed, Apr 22, 2009 at 02:47:01AM -0400, diogin wrote:

> Is windows binary unable to customize installation path? The only path is C:/nginx ?

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

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [April 23, 2009, 7:19am UTC](https://www.ruby-forum.com/t/nginx-0-7-52/165942/42 "2009-04-23T07:19:41Z")

</div>

## Igor S. Wrote:

> 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:

> **[Re: nginx-0.7.52](https://forum.nginx.org/read.php?2,1199,1336#msg-1336)**
>
> Changes with nginx 0.7.52 20 Apr 2009 \*) Feature: the first native Windows binary release. \*) Bugfix: in processing HEAD method while caching. \*) Bugfix: in processing the "If-Modified-Since", &

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [April 23, 2009, 7:28am UTC](https://www.ruby-forum.com/t/nginx-0-7-52/165942/43 "2009-04-23T07:28:29Z")

</div>

On Wed, Apr 22, 2009 at 08:09:30AM -0400, diogin wrote:

> > Right now you may set full path in nginx.conf and
> 
> 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”

I will change this behavior in near future: nginx will try to write to  
stderr  
before fallback to event log.

> 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?

Yes:

error\_log d:/nginx1/logs/error.log notice;

etc.

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [April 23, 2009, 3:38pm UTC](https://www.ruby-forum.com/t/nginx-0-7-52/165942/44 "2009-04-23T15:38:33Z")

</div>

> Very minor detail/request from Windows people: I’m not very  
> knowledgeable with MS-DOS Batch files. Can someone tell me how to run  
> “start nginx” from within a .bat? I’m just running it separately from a  
> cmd prompt now, which works, just one extra step.

It should be the same way as from a command prompt. [?]

> On another note to the folks maintaining the nginx site and docs, I’m  
> sure it would be very helpful to M$ people if you took the information  
> from the following link, updated it so that it relates to the current  
> Windows native binary (and strip the Wordpress-specific stuff), and took  
> this information to the nginx site.

There is a wiki you may be able to add a page there 🙂  
Thanks for the info!

> **[Welcome to NGINX Wiki! | NGINX](https://www.nginx.com/resources/wiki/)**
>
> This is the NGINX Wiki. NGINX is a free, open-source, high-performance HTTP server, reverse proxy, and IMAP/POP3 proxy server.

-=r

[Previous page](https://www.ruby-forum.com/t/nginx-0-7-52/165942.md?page=2)
