Tips / Nginx

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 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 stopfast shutdown
nginx -s quitgraceful shutdown
nginx -s reloadreload the configuration file
nginx -s reopenre-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
  • nginx for windows
  • install nginx windows

Esteban Borges

Linux Geek, Webperf Addict, Nginx Fan. CTO @Infranetworking

  • Jan de Lint

    Are the rewrite rules using regexp supposed to work on the windows version?

  • ORC

    I’m trying to use nginx on windows, but I can get a server working.
    It works for localhost ( but not for a domain.

  • admin

    Ensure the DNS entries are pointing to the right public IP of your server.
    Also ensure you got the virtual host configuration configured ok for your domain inside.
    Check your logs.

  • dv

    Very useful! Is there a how-to for FastCGI for Python programs? Do you know if the nginx pagespeed module will work for Windows – which is only used for development?

    • admin

      Ngx_pagespeed currently doesn’t support Windows or MacOS, only Linux.

  • About these issues at the top of this tip, this is old news, use a proper nginx for windows version which is not crippled, has working multiple workers and can handle c1000k by (re)design,

  • Hardy Jonck

    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.

  • Eric

    I tried running it on Windows but the console terminal just pop-up and disappeared in seconds. nginx 1.9.5.
    Can anyone help?

    • Dominic Jones

      Did you try running cmd terminal first then `cd`ing into the folder then running the commands? I’m guessing you may have double clicked an exe file, it did what it needed to do then closed.

  • gansbrest

    Just wrote an article about Nginx installation on Windows with Docker. Check it out please