Zum Inhalt springen

🟩 <code>nginx.conf</code>-Generator

Geben Sie den Hostname, das Root-Verzeichnis und den SSL-Zertifikatspfad ein und wählen Sie Funktionen über Kontrollkästchen aus. Generiert in Echtzeit Production-Level <code>server</code>-Blöcke mit HTTPS-Umleitung, HTTP/2, modernem TLS, HSTS, gzip/brotli, statischem Cache, PHP-FPM, Reverse Proxy, WebSocket und <code>try_files</code>.

100% Free No signup Browser-only 5 languages Dark mode

🔒 Über Datenschutz

🎛 Voreinstellung

🧩 Funktionsauswahl

📄 Generierte nginx.conf


        
    

📖 Wie man es benutzt

  1. 1
    Pick a preset
    Select Static, WordPress, Laravel or Next.js — recommended features get auto-checked.
  2. 2
    Set host and SSL paths
    Enter server_name, document root, and Lets Encrypt fullchain.pem / privkey.pem paths.
  3. 3
    Copy or download
    Use the buttons to copy to clipboard or download as a .conf file.
  4. 4
    Place into nginx and reload
    Place into /etc/nginx/sites-available/, symlink into sites-enabled, run sudo nginx -t to test, then sudo systemctl reload nginx.

❓ Häufig gestellte Fragen

What if I do not have an SSL certificate yet?
Use certbot from Lets Encrypt to issue a free certificate: sudo certbot --nginx -d example.com -d www.example.com. Only enable HSTS after HTTPS is fully working.
nginx -t reports an error
Most issues are SSL path typos or a PHP-FPM socket path that does not match your install. Check the line number in the error and run journalctl -u nginx.
Can I use Apache .htaccess on nginx?
No. nginx does not read .htaccess — rewrites must live in server / location blocks. For Apache hosts, use our .htaccess generator instead.
🐛 Sind Sie auf ein Problem mit diesem Tool gestoßen?

Vollständig kostenlos und ohne Registrierung. Auch Reproduktionsschritte sind ausreichend. Eingegangene Berichte werden direkt an die Betreiber weitergeleitet und dienen als Referenz für Korrektionen.

※ Um Probleme zu reproduzieren, werden Browser-Informationen (UA / Bildschirmgröße / Sprache / URL) automatisch gesendet