$
Nginx Config Generator
Build production-ready Nginx server block configurations visually — configure SSL, reverse proxy, security headers, caching, and more with instant preview.
Presets
Basic Configuration
Generated Config
server {
listen 80;
listen [::]:80;
server_name example.com;
root /var/www/html;
index index.html index.htm;
# Security headers
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "no-referrer-when-downgrade" always;
# Logging
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log warn;
}