How to setup Nginx on Windows in Azure/AWS/GCP
To install and setup 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 2022, 2019 or 2016 on any of the cloud platforms.
Setup NGINX on Windows in Azure
Deploy NGINX on Windows 2019 in Azure
Setup NGINX on Windows in AWS
Deploy NGINX on Windows 2019 in AWS
Setup NGINX on Windows in GCP
Deploy NGINX on Windows 2019 in GCP
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:
- How to RDP to AWS Windows Instance
- How to RDP to Google GCP Windows Instance
- How to RDP to Azure Windows Virtual Machine
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.
Related Posts:
- How to Setup NGINX Server on Ubuntu in Azure/AWS/GCP
- Nginx SSL/TLS Configuration: Enable HTTPS on Your Nginx Server
- Nginx Caching: How to Use Nginx for Caching Static Content
- Nginx Security: How to Secure Your Nginx Server- 15 Ways
- How to Setup Windows Server Core - Minimal Installation on Azure/AWS/GCP
- Setup Windows Server Datacenter on Azure/AWS/GCP