# Nginx windows

**URL:** <https://www.ruby-forum.com/t/nginx-windows/205427>\
**Category:** NGINX\
**Created:** [April 6, 2011, 12:18pm UTC](https://www.ruby-forum.com/t/nginx-windows/205427 "2011-04-06T12:18:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [April 6, 2011, 12:18pm UTC](https://www.ruby-forum.com/t/nginx-windows/205427/1 "2011-04-06T12:18:09Z")

</div>

Hello I wonder if this is possible to fix in the future and if somebody  
gonna fix that out?

Known issues

```
Although several workers can be run, only one of them actually does

```

any work.  
A worker can handle no more than 1024 simultaneous connections.

Posted at Nginx Forum:

> **[Nginx windows](https://forum.nginx.org/read.php?2,188714,188714#msg-188714)**
>
> Hello I wonder if this is possible to fix in the future and if somebody gonna fix that out? Known issues Although several workers can be run, only one of them actually does any work. A worker can handle no more than 1024 simultaneous connections.

---

<div class="post-metadata">

**Author:** ![Kraiser](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/43a26b/32.png) [@Kraiser](https://www.ruby-forum.com/u/Kraiser)\
**Post date:** [April 6, 2011, 1:49pm UTC](https://www.ruby-forum.com/t/nginx-windows/205427/2 "2011-04-06T13:49:37Z")

</div>

As I known, in windows :

1. several workers will be work as only one workers
2. only work in select()

it only a version CAN WORK , not a good one .

2011/4/6 Kraiser [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Kraiser](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/43a26b/32.png) [@Kraiser](https://www.ruby-forum.com/u/Kraiser)\
**Post date:** [July 18, 2011, 6:48pm UTC](https://www.ruby-forum.com/t/nginx-windows/205427/3 "2011-07-18T18:48:50Z")

</div>

So they are windows bugs not nginx right?

Posted at Nginx Forum:

> **[Re: Nginx windows](https://forum.nginx.org/read.php?2,188714,212565#msg-212565)**
>
> Hello I wonder if this is possible to fix in the future and if somebody gonna fix that out? Known issues Although several workers can be run, only one of them actually does any work. A worker can handle no more than 1024 simultaneous connections.

---

<div class="post-metadata">

**Author:** ![Kraiser](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/43a26b/32.png) [@Kraiser](https://www.ruby-forum.com/u/Kraiser)\
**Post date:** [July 18, 2011, 7:09pm UTC](https://www.ruby-forum.com/t/nginx-windows/205427/4 "2011-07-18T19:09:51Z")

</div>

Huh?

On Mon, Jul 18, 2011 at 18:04, Maxim D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > So they are windows bugs not nginx right?
> 
> Not really.

You mean nginx in \*nix only uses one worker and can only handle 1024  
simultaneous connections? When did this happen?

–  
“On the internet, nobody knows you’re a dog.”

---

<div class="post-metadata">

**Author:** ![Kraiser](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/43a26b/32.png) [@Kraiser](https://www.ruby-forum.com/u/Kraiser)\
**Post date:** [July 18, 2011, 7:04pm UTC](https://www.ruby-forum.com/t/nginx-windows/205427/5 "2011-07-18T19:04:54Z")

</div>

Hello!

On Mon, Jul 18, 2011 at 12:48:06PM -0400, Kraiser wrote:

> So they are windows bugs not nginx right?

Not really. Though fixing this will require relatively large  
amount of work and not considered as a high-priority task.

Maxim D.

---

<div class="post-metadata">

**Author:** ![Kraiser](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/43a26b/32.png) [@Kraiser](https://www.ruby-forum.com/u/Kraiser)\
**Post date:** [July 18, 2011, 10:25pm UTC](https://www.ruby-forum.com/t/nginx-windows/205427/6 "2011-07-18T22:25:25Z")

</div>

Also seems like user directive does not work in latest 1.0.4 it would be  
nice to have it working 😑 it is very helpfull when it comes to  
security.

Posted at Nginx Forum:

> **[Re: Nginx windows](https://forum.nginx.org/read.php?2,188714,212575#msg-212575)**
>
> Hello I wonder if this is possible to fix in the future and if somebody gonna fix that out? Known issues Although several workers can be run, only one of them actually does any work. A worker can handle no more than 1024 simultaneous connections.

---

<div class="post-metadata">

**Author:** ![Kraiser](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/43a26b/32.png) [@Kraiser](https://www.ruby-forum.com/u/Kraiser)\
**Post date:** [July 18, 2011, 7:20pm UTC](https://www.ruby-forum.com/t/nginx-windows/205427/7 "2011-07-18T19:20:24Z")

</div>

Hello!

On Mon, Jul 18, 2011 at 06:09:02PM +0100, Nuno Magalhães wrote:

> Huh?
> 
> On Mon, Jul 18, 2011 at 18:04, Maxim D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > > So they are windows bugs not nginx right?
> > 
> > Not really.
> 
> You mean nginx in \*nix only uses one worker and can only handle 1024  
> simultaneous connections? When did this happen?

No. I mean it’s how nginx under Windows works, not Windows bugs.

Maxim D.

---

<div class="post-metadata">

**Author:** ![Kraiser](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/43a26b/32.png) [@Kraiser](https://www.ruby-forum.com/u/Kraiser)\
**Post date:** [July 18, 2011, 10:28pm UTC](https://www.ruby-forum.com/t/nginx-windows/205427/8 "2011-07-18T22:28:31Z")

</div>

#if (NGX\_WIN32)

```
ngx_conf_log_error(NGX_LOG_WARN, cf, 0,
                   "\"user\" is not supported, ignored");

return NGX_CONF_OK;

```

#else

Posted at Nginx Forum:

> **[Re: Nginx windows](https://forum.nginx.org/read.php?2,188714,212576#msg-212576)**
>
> Hello I wonder if this is possible to fix in the future and if somebody gonna fix that out? Known issues Although several workers can be run, only one of them actually does any work. A worker can handle no more than 1024 simultaneous connections.

---

<div class="post-metadata">

**Author:** ![Kraiser](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/43a26b/32.png) [@Kraiser](https://www.ruby-forum.com/u/Kraiser)\
**Post date:** [July 19, 2011, 7:35am UTC](https://www.ruby-forum.com/t/nginx-windows/205427/9 "2011-07-19T07:35:29Z")

</div>

On Mon, Jul 18, 2011 at 04:25:01PM -0400, Kraiser wrote:

> Also seems like user directive does not work in latest 1.0.4 it would be  
> nice to have it working 😑 it is very helpfull when it comes to  
> security.

You can nginx/Windows as any user using Windows runas application.  
Under Unix user directive is more important since you have to run  
nginx as root to get access to the 80 port.

–  
Igor S.
