Common Configuration Examples

1 min read

Authors
banner
Table of Contents

Common Configuration Examples

Static Website

nginx
server {
    listen 80;
    server_name example.com;
    root /var/www/html;
    index index.html;
}

Reverse Proxy

nginx
server {
    listen 80;
    location / {
        proxy_pass http://localhost:3000;
    }
}

Load Balancer

nginx
upstream backend {
    server s1:8080;
    server s2:8080;
}
server {
    location / {
        proxy_pass http://backend;
    }
}

Copy-paste ready!

© 2026 Vijay Rajendranbuilt with Next.js & Tailwind · deployed on Vercel