How to setup NGINX on Ubuntu in Azure/AWS/GCP
To install NGINX Open Source on to Linux Ubuntu on any of the cloud platforms (Azure,AWS,GCP), the easiest way is to use the available template in the marketplaces on the below links. The template fully sets up a Ubuntu server running NGINX Open Source, ready to use in the cloud.
Getting Started
Once your NGINX server has been deployed, the following links explain how to connect to a Linux VM:
- How to connect to a Linux VM on Azure
- How to connect to a Linux VM on AWS
- How to connect to a Linux VM on GCP
Once connected and logged in, the following section explains how to configure NGINX as per your requirements
NGINX on Linux Ubuntu
This solution is built using NGINX Open Source.
The configuration files/modules can be found in /etc/nginx
Documentation on setting up the following can be found on the following links below:
- Controlling NGINX Runtime
- Load Balancer
- Content Cache
- Web Server
- Reverse Proxy
- Security Controls
- Monitoring
- High Availability
- Dynamic Modules
- Mail Proxy
https://docs.nginx.com/nginx/admin-guide/basic-functionality/runtime-control/
And
Firewall Ports
NGINX on Ubuntu 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.