Reverse proxy · Load balancing · SSL · Rewrite · Production best practices
# Nginx config will appear here
Nginx is the world's most popular web server and reverse proxy, powering over 30% of global websites. ng.cc's online Nginx config generator covers four core scenarios: reverse proxy, load balancing, SSL certificates, and URL rewriting. All configurations follow production best practices. No need to memorize Nginx syntax – visual configuration, one‑click download. 100% client‑side, zero upload.
WebSocket support, custom headers, timeout control, buffer tuning. Auto‑adds X-Forwarded-* headers, hides Nginx version.
Round‑robin, least_conn, ip_hash algorithms. Weight, health checks, backup servers. Automatically generates upstream block.
TLSv1.2/1.3, HSTS, OCSP Stapling, HTTP/2, security headers. Compliant with Let's Encrypt deployment standards.
301/302 redirects, static‑to‑dynamic, mobile adaptation, custom error pages. Supports regular expressions.
Defines a group of backend servers with weight, max_fails, backup. Algorithms: round‑robin, least_conn, ip_hash.
Virtual host: listen port, domain name, SSL settings, root directory, index files. One Nginx can host many sites.
Exact (=), regex (~), prefix matching. Priority: exact > regex > prefix.
Forwards requests to a backend (http, https, upstream group). Automatically adjusts Host header.
server_name, proxy_pass, certificate paths etc. Run nginx -t to verify syntax before deploying.
Upgrade and Connection headers. Works with Node.js, Django Channels, Spring WebSocket, etc.
rewrite_log on; inside the server block and check error logs: error_log /var/log/nginx/rewrite.log notice;. Our generated rules are standard – test with curl: curl -I http://example.com/old-path.
This tool is part of the ng.cc DevOps collection. You might also like:
⚡ All configs are generated locally – your server information never leaves your browser.