How to install Nginx on Windows

Nginx, the popular high performance web server is mostly used on Unix based systems, but, what you probably don’t know is that there is a Nginx version for Windows systems. In this how to we will cover the basic installation of Nginx in Windows.

Before we start you should know about a few issues regarding the Nginx Windows version, direct warning from the developers at

  • Although several workers can be started, only one of them actually does any work.

  • A worker can handle no more than 1024 simultaneous connections.

  • The cache and other modules which require shared memory support do not work on Windows Vista and later versions due to address space layout randomization being enabled in these Windows versions.

Installing Nginx in Windows

A windows console example of the installation would be this:

cd nginx-1.3.13
start nginx

The Windows version of Nginx can be managed within the console, this are some example to manage the Nginx web server on a Windows Platform:

nginx -s stop	fast shutdown
nginx -s quit	graceful shutdown
nginx -s reload	reload the configuration file
nginx -s reopen	re-opening log files

That’s all 😉

If you need more information about Nginx for Windows, you can check out this page at

Have you ever tried Nginx for Windows? Please let us know about your experience.

Popular search terms:

  • nginx windows
  • nginx on windows
  • install nginx on windows
  • how to install nginx on windows


  1. Does gzip compression work on Windows? Does not seem like it. Configured a https reverse proxy and it servers – but no compression despite an identical config that works perfectly on linux.

    • check the error.log file in the logs directory. I was seeing the same thing and had to turn off the Windows IIS services. My error message was: “An attempt was made to access a socket in a way forbidden by its access permissions”

Leave a Reply

Your email address will not be published. Required fields are marked *