Nginx on Windows

Nginx - light and fast web-server currently available on Windows. Official site says that it's only beta now and doesn't recommend to use it for production.

Anyway the news are great ;) Nginx doesn't use Cygwin but runs with Win32 API. Method select is using for connections processing, so the performance on Windows currently will be less than on Unix systems. All features available except IPv6, XSLT-filter and built-in Perl.

Installation is quite simple:
- Download Nginx
- Run commands:

cd c:\
unzip nginx-0.7.52.zip
ren nginx-0.7.52 nginx
cd nginx
start nginx

If Nginx don't start you should discover logs/error.log file. I've successfully ran the server on Windows Vista x64 :
 

Nginx on Windows isn't a service. Here are the commands to control web-server process:
nginx -s stop           fast shutdown
nginx -s quit           smooth shutdown
nginx -s reload         configuration reset, new worker processes with 
                        new configuration, smooth shutdown of old worker 
                        processes.
nginx -s reopen         reopen log-files

2 comments:

Anonymous said...

hi,

I try, but failed, no listening and no log. why?

Anonymous said...

oh, the nginx dir must unzip into C:\