Install Nginx on Windows
Nginx® is a web-server service, which has gained almost as much market share as Apache® in recent years due
to its excellent performance and flexible feature set. This guide describes how to install Nginx and discusses
the next steps to set up Nginx to serve your site or application.
Prerequisites:
You need a server running a version of the Windows® Server® operating system.
Nginx installation on Windows Server
Nginx comes pre-compiled direct from their website, which makes installation as simple as downloading and extracting a file.
-
Download the latest mainline release from https://nginx.org/en/download.html.
-
Extract the file to the location where you want to install Nginx, such as C:\nginx.
Note: We recommend creating a new directory for Nginx.
Test the installation
Open a CMD prompt and start Nginx with the following command:
C:\nginx\nginx.exe
Note: Replace **C:\nginx** with the directory location where you installed Nginix.
You should be able to navigate to https://localhost/ in the server's web browser and see the Nginx default web page.
If you see "Welcome to Nginx," everything is working as intended.
Useful information
The Nginx project considers the Windows release to be in beta. Functionally, this release is similar to Unix releases, but
some features are missing. For further information, see nginx for Windows.
Next steps
If you want to serve more than one site, we recommend that you set up Nginx server blocks to accommodate this need.
Updated 11 months ago