Server block generator
Loading page
This may take a few seconds.
Loading page
This may take a few seconds.
If reChecker is not working correctly, describe the problem and the page where it happened. Leave an email or phone number; we will reply after checking.
Nginx configuration generator
server {
listen 80;
listen [::]:80;
server_name example.com;
root /var/www/html;
index index.html index.htm index.php;
# Logs
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
# Gzip Compression
gzip on;
gzip_vary on;
gzip_min_length 1024;
gzip_proxied any;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml image/svg+xml;
# Security Headers
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
location / {
try_files $uri $uri/ =404;
}
}
Nginx Generator creates Nginx web server configurations. Create a server block for your site with SSL, application proxying, Gzip compression, and caching. Suitable for PHP, Node.js, and static sites.
Server block generator
Configure SSL (Let's Encrypt)
Backend proxying
Gzip and Brotli compression
Static asset caching rules
The generator creates a ready-to-use Nginx config based on your settings: domain, root directory, SSL, and proxy to an application. It saves time when configuring a new website and reduces the risk of syntax errors.