Visual Nginx Server Block & Reverse Proxy Configurator
Generate secure, battle-tested Nginx configurations with SSL/TLS hardening, WebSocket upgrade proxies, gzip compression, and rate limiting. Built completely client-side in your browser.
Domain & Routing Profile
Configure your domain names, listening ports, and application runtime type.
100% Client-Side Privacy
Every server name, upstream IP, and directory path is calculated purely inside your browser. No telemetry or server configuration files ever touch external backend APIs.
Production Hardened Best Practices
Equipped with Mozilla Modern SSL profiles, HSTS headers, OCSP stapling, HTTP/2 multiplexing, and robust dotfile denial rules to pass enterprise security audits.
Universal Architecture Ready
Supports Next.js Full-Stack, React/Vue SPAs, FastAPI/Python, PHP-FPM, upstream load balancing with round-robin or least_conn, and high-frequency WebSocket streams.
Frequently Asked Questions & Nginx Tuning Guide
Key insights into Nginx reverse proxy architecture, WebSocket handshakes, and SSL optimization.
Where should I place this generated Nginx configuration file?
On Ubuntu/Debian, copy the file to /etc/nginx/sites-available/your-domain.conf, then create a symbolic link to /etc/nginx/sites-enabled/. On CentOS, RHEL, or Alpine, place it directly in /etc/nginx/conf.d/your-domain.conf.
Why are WebSocket headers (Upgrade & Connection) crucial for Next.js and modern apps?
By default, Nginx converts incoming HTTP/1.1 requests to HTTP/1.0 when communicating with upstream proxy servers, which closes persistent connections and strips the Hop-by-Hop Upgrade header. Enabling WebSocket support preserves the connection for Next.js Fast Refresh and real-time socket events.
What is the purpose of try_files $uri $uri/ /index.html in SPAs?
In Single Page Applications (React, Vue, Vite), client-side routing handles URLs like /dashboard or /settings. Without try_files fallback to /index.html, refreshing a subpage would cause Nginx to look for a physical folder on disk and return a 404 Not Found error.
How do I achieve an A+ SSL Labs rating with this configuration?
This configurator automatically includes TLSv1.2 and TLSv1.3 protocols, modern cipher suites, OCSP stapling with high-speed DNS resolvers, and HSTS (Strict-Transport-Security) with a 1-year max-age. Run sudo nginx -t && sudo systemctl reload nginx after saving your certificates.