Nginx is an open-source web server that is also widely used as a reverse proxy, load balancer and HTTP cache. It uses an event-driven design in which a master process manages worker processes, so it can handle many concurrent connections with modest resources. That is why it often sits in front of application servers and runs inside Kubernetes clusters as an Ingress controller.
Posts under this tag start with installing and configuring Nginx on CentOS 7 / RHEL 7, including opening ports with firewall-cmd. Others show how to enable ngx_http_stub_status_module for metrics and send those metrics to Datadog. A hands-on lab walks through ingress-nginx with path-based routing on Kubernetes, and a practical guide shows how to serve an app on port 3000 through port 80. Comparison articles weigh Nginx against other web servers, reverse proxies, load balancers and Ingress controllers.
System administrators, DevOps engineers and developers deploying web apps will find working configurations here. The 50 interview questions help anyone preparing for a role that involves web infrastructure.
Start here
- What is Nginx and use cases of Nginx? – Explains Nginx's roles as web server, reverse proxy, load balancer and cache, with starter tutorials.
- How to install and configure nginx in CentOS 7 / RHEL 7? – Takes you from yum repo setup to a running, firewall-opened Nginx server.
- How to migrate all the traffic from one to another port – Shows how to put an app on port 3000 behind port 80 using a reverse proxy or iptables.
- How to enable “ngx_http_stub_status_module” in Nginx for Nginx metrices? – Exposes basic Nginx metrics and verifies the status endpoint works.
- How to install nginx integration in Datadog? – Sends stub_status metrics into Datadog and validates them in Metrics Explorer.
- Kubernetes Ingress Controller using Path-Based Routing: Complete Hands-On Lab with Calico VXLAN – A full ingress-nginx lab with path-based routing, rewrites and fixes for common networking errors.
- Top 10 Reverse Proxy Tools: Features, Pros, Cons & Comparison – Compares Nginx with HAProxy, Traefik, Envoy and Caddy for reverse proxy work.
- Top 50 Nginx Interview questions and answers – Reviews reverse proxy, load balancing, worker processes and Nginx vs Apache before interviews.
Latest Nginx articles
Kubernetes Ingress Controller using Path-Based Routing: Complete Hands-On Lab with Calico VXLAN
Scope: Self-managed Kubernetes on two AWS EC2 Ubuntu nodes; install the community ingress-nginx v1.15.1 bare-metal/NodePort manifest, repair cross-node Calico networking, deploy two NGINX versions behind ClusterIP Services, configure path-based routing…
HTTP 404 for DevOps: Root-Cause, Routing, and Prevention Across Edge, Ingress, and App Layers
HTTP 404 errors are simple for users but often complex in distributed systems. This guide shows DevOps teams how to locate the failing layer, apply the right fix, and prevent repeat incidents.
Top 10 Load Balancers: Features, Pros, Cons & Comparison
Introduction Load balancers are a foundational component of modern IT infrastructure. At a basic level, a load balancer sits between users and backend systems and intelligently distributes…
Top 10 Reverse Proxy Tools: Features, Pros, Cons & Comparison
Introduction Reverse Proxy Tools sit quietly at the heart of modern internet infrastructure, yet they play a critical role in performance, security, and scalability. In simple terms,…
Top 10 Web Servers: Features, Pros, Cons & Comparison
Introduction A web server is the backbone of the modern internet. It is the software responsible for receiving requests from users’ browsers, processing those requests, and delivering…
Complete Tutorial on SSL Certificates and FREE Let’s Encrypt
You want a deep, in-depth tutorial that explains SSL/TLS certificates, their types, domain coverage, paid vs free options, and especially a detailed guide for requesting and issuing…
Kubernetes Ingress Rules: Complete Guide with Examples
Here’s a comprehensive, practical, and easy-to-follow tutorial on all main types of Kubernetes Ingress rules—with detailed explanations, diagrams, and YAML examples for each. This guide is aimed…
How SSL/TLS Certificates Work: Setup & Manual Renewal using acme.sh
Here’s a well-structured and comprehensive tutorial based on your notes, with added explanations, examples, and a professional tone suitable for blog publication or internal documentation. 📜 SSL/TLS…
How to migrate all the traffic from one to another port
I am running my app on 10.3.23.23:3000 but the i would like to access at 80 port instead 3000 but the same time i dont want to…
Load Balancing tools in 2024
The load balancing landscape continues to evolve rapidly in 2024, offering a diverse range of tools to distribute traffic effectively and ensure optimal performance for your applications….
What is Nginx and use cases of Nginx?
What is Nginx? Nginx is a popular open-source web server and reverse proxy server that also functions as a load balancer, HTTP cache, and web accelerator. It…
List of Ingress controllers in Kubernetes
Here is a list of Ingress controllers for Kubernetes: NGINX Ingress Controller: The NGINX Ingress Controller is a widely used and battle-tested solution for managing external access…
Step by Step to Setup Rancher RKE2 HA cluster using Nginx
I can provide you with a step-by-step guide on how to set up a Rancher RKE2 HA cluster using Nginx as the load balancer. Here are the…
configure nginx in host server with https enabled and route all traffic container
Detail steps to configure nginx in host server with https enabled and route all traffic from nginx to docker container Here are the detailed steps to configure…
Nginx Tutorials: Basic commands
These are the basic commands you use to interact with your NGINX instance. Check NGINX version: Check configuration file syntax before reloading: Display current configurations: Reload NGINX…
Nginx Tutorials: Example of Nginx configuration
Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…
How to monitor nginx using zabbix?
There are 2 default template has been given by Zabbix which can be used to Nginx metrices monitoring Nginx by HTTP Nginx by Zabbix agent Zabbix Template…
How to enable “ngx_http_stub_status_module” in Nginx for Nginx metrices?
Step 3 – Enable “ngx_http_stub_status_module” in Nginx If you use open source NGINX, your instances may lack the stub status module. Verify that your nginx binary includes…
How to install nginx integration in Datadog?
How it works? Step 1 – Install Nginx in Centos 7 Step 2 – Configure Nginx and start a services Step 3 – Enable “ngx_http_stub_status_module” in Nginx…
Top 50 Nginx Interview questions and answers
1) What is Nginx? Nginx is a type of an open source web server which is especially used for reverse proxy, load balancer, mail proxy and for…
List of Top 5 Web servers in 2021
What is the Web Server? Web server is a computer where the web content is stored. Basically web server is used to host the web sites but…
How to install and configure nginx in Ubuntu?
Step 1: Update Software Repositories Step 2: Install Nginx From Ubuntu Repositories Step 3: Verify the Installation Step 4: Controlling the Nginx Service Step 5: Allow Nginx…
How to install and configure nginx in CentOS 7 / RHEL 7?
Step 1 – Configure Nginx repo for CentOS 7 Step 2 – Configure Nginx repo for RHEL 7 Step 3 – Install Nginx on CentOS 7 &…
Prometheus Security and Authentication explained
[This tutorial is under developement] Prometheus does not directly support basic authentication (aka “basic auth”) for connections to the Prometheus expression browser and HTTP API. If you’d…
GitLab Error: – GitLab is not responding
rajeshkumar created the topic: GitLab is not responding Issues – After setting up the gitlab in ubantu by following www.scmgalaxy.com/111-git/888-setting-up…n-local-machine.html I am getting error called “GitLab is…
Nginx: frequently asked questions
What is the difference between Nginx and Apache?
Nginx uses an asynchronous, event-driven model in which a small number of worker processes each handle many connections. Apache traditionally handles connections with processes or threads through its MPMs and supports per-directory .htaccess files. Nginx is often preferred for high concurrency and serving static content.
How do I test and reload an Nginx configuration?
Run nginx -t to check the syntax of the configuration. If the check passes, apply the changes without dropping connections by running nginx -s reload or systemctl reload nginx.
How do I use Nginx as a reverse proxy?
Add a location block with a proxy_pass directive that points to the backend address, for example proxy_pass http://127.0.0.1:3000;. Nginx then forwards client requests to that backend and returns its responses.
What does the Nginx stub_status page show?
It shows active connections, the totals of accepted and handled connections, and total requests. It also reports how many connections are currently reading, writing or waiting. Monitoring agents such as Datadog read this endpoint to collect Nginx metrics.
