Nginx Configuration Generator

Generate secure, production-ready Nginx server block configs with SSL, reverse proxy, and caching.

  • 100% free
  • Private in browser
  • No signup
  • No watermarks

Nginx Configuration Generator

Create production-ready Nginx reverse proxy blocks with SSL redirects and security headers.

Server Configuration

Total Lines: 46 (Paste into /etc/nginx/sites-available/)

Rate this tool

Be the first to rate — helps others and improves this page.

About Nginx Configuration Generator

Generate secure, production-ready Nginx server block configs with SSL, reverse proxy, and caching. Use this free client-side tool on TheToolss with zero installation and complete privacy.

How to use Nginx Configuration Generator

  1. Enter your domain name (e.g., example.com) and upstream backend port.
  2. Toggle HTTPS / SSL redirect and enter certificate file locations.
  3. Enable WebSocket support, Gzip compression, and security headers as needed.
  4. Copy the generated server block and paste into /etc/nginx/sites-available/.

Key features

  • Reverse proxy configuration with Host, X-Real-IP, and X-Forwarded-Proto headers
  • Automated HTTP to HTTPS permanent 301 redirection
  • WebSocket upgrade header rules (Connection and Upgrade proxy variables)
  • Built-in Gzip text compression settings for optimal asset delivery
  • Modern security headers (X-Frame-Options, X-Content-Type-Options, X-XSS-Protection)

Frequently asked questions

Where do I save the generated Nginx config on Linux?
Save it in /etc/nginx/sites-available/yourdomain.com and symlink it to /etc/nginx/sites-enabled/ (e.g. ln -s /etc/nginx/sites-available/yourdomain.com /etc/nginx/sites-enabled/).
How do I test my Nginx configuration before reloading?
Run sudo nginx -t in your Linux terminal. If the syntax is ok, reload safely with sudo systemctl reload nginx.
Does this config handle WebSocket connections?
Yes! Toggling the WebSocket option adds the required proxy_http_version 1.1, proxy_set_header Upgrade, and proxy_set_header Connection headers.
What SSL certificate paths does it default to?
It defaults to standard Certbot / Let’s Encrypt certificate paths: /etc/letsencrypt/live/yourdomain/fullchain.pem and privkey.pem.
Are my domain names or server ports tracked?
Never. All configuration generation runs 100% locally inside your web browser.