AiTechWorlds
AiTechWorlds
Generate nginx server blocks for static sites, reverse proxies, or load balancers.
Generate nginx server block configurations
nginx.conf
server {
listen 80;
listen [::]:80;
root /var/www/html;
index index.html index.htm;
gzip on;
gzip_vary on;
gzip_min_length 1024;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
location / {
try_files $uri $uri/ /index.html;
}
}The Nginx Config Generator creates ready-to-use nginx server block configurations for three common use cases: static site hosting, reverse proxy (for Node.js, Python, or any backend), and load balancing across multiple servers. Configure SSL redirect, gzip, WebSocket support, and X-Real-IP headers with toggle switches.
Select config type
Choose Static Site, Reverse Proxy, or Load Balancer from the tabs.
Fill in the form
Enter domain name, root path or upstream URL, and toggle optional features.
Copy or download
Copy the config or download as nginx.conf ready to place in /etc/nginx/sites-available/.
100% Private — No Server Required
All processing happens directly in your browser. No data is uploaded, stored, or transmitted to any server.