Nginx Guide

NginxWeb Server & Reverse Proxy

Learn Nginx configuration, reverse proxy, load balancing, SSL termination, and serving static files.

Contents

Nginx Basics

Nginx is a high-performance web server and reverse proxy. Used for serving static files, load balancing, and SSL termination.

bash
# Installation (Ubuntu/Debian)
sudo apt update
sudo apt install nginx

# Start Nginx
sudo systemctl start nginx

# Enable on boot
sudo systemctl enable nginx

# Check Status
sudo systemctl status nginx

# Reload Configuration
sudo nginx -s reload

# Test Configuration
sudo nginx -t