How to setup Nginx on Windows in Azure/AWS/GCP

To install NGINX on Windows Server on any of the cloud platforms (Azure/AWS/GCP), the easiest way is to use the available templates in the marketplaces on the below links. You can run NGINX on Windows Server 2016 or 2019 on any of the cloud platforms.

Getting Started

 

RDP into new server

 

Once you have deployed NGINX on Windows server, the first step is to RDP into the new instance once it has fully booted up.  The following links explain how to connect the VM once it has finished being deployed:

 

 

Once logged in, you’re now ready to start setting up your new server as per the following sections.

NGINX on Windows Server

 

NGINX install directory and config files are located in:

 

c:\nginx

 

nginx.conf and all other .conf files are located in:  c:\nginx\conf

 

NGINX documentation on running on Windows

 

http://nginx.org/en/docs/windows.html

 

Documentation on setting up the following can be found on the following link below:

 

  • Controlling NGINX Runtime
  • Load Balancer
  • Content Cache
  • Web Server
  • Security Controls
  • Monitoring
  • High Availability
  • Dynamic Modules
  • Mail Proxy

 

https://docs.nginx.com/nginx/admin-guide/basic-functionality/runtime-control/

 

Firewall Ports

 

NGINX on Windows has the following ports already enabled. Depending on what you want to use NGINX for, you will need to enable your required ports if you are using a firewall/Network Security Groups

 

  • TCP 80
  • TCP 443

 

To setup AWS firewall rules refer to – AWS Security Groups

To setup Azure firewall rules refer to – Azure Network Security Groups

To setup Google GCP firewall rules refer to – Creating GCP Firewalls

 

Support

 

If you require any help with the installation of NGINX, leave a comment below or contact us directly if you are experiencing any issues

 

Disclaimer: This solution is built using Nginx, Inc. and its contributors, an opensource software. This solution is Licensed under the 2-clause BSD license. THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Avatar for Andrew Fitzgerald
Andrew Fitzgerald

Cloud Solution Architect. Helping customers transform their business to the cloud. 20 years experience working in complex infrastructure environments and a Microsoft Certified Solutions Expert on everything Cloud.

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x