Nginx Config Generator - Create Nginx Configuration
Generate Nginx configuration files visually. Support static site, reverse proxy, PHP-FPM, Node.js, SSL/HTTPS, gzip, and security headers.
Server Type
Server Name
Enable SSL/HTTPS
Options
Generated Configuration
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_min_length 256;
gzip_types
text/plain
text/css
application/json
application/javascript
text/xml
application/xml
application/xml+rss
text/javascript;
server {
listen 80;
listen [::]:80;
server_name example.com;
access_log /var/log/nginx/example.com.access.log;
error_log /var/log/nginx/example.com.error.log;
root /var/www/html;
index index.html index.htm;
location / {
try_files $uri $uri/ =404;
}
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 ~ /\.ht {
deny all;
}
}Instructions
- • Select server type and configure settings
- • Toggle SSL, Gzip, Cache, and Security headers
- • Click Generate to create the config
- • Copy or download the configuration file
Related Tools
More Code & Dev Tools
XML Formatter
Format and minify XML online. Beautify XML code or compress ...
IP Lookup
Lookup IP address information online. Get location, ISP, and...
JavaScript Obfuscator
Obfuscate and protect JavaScript code. Make your code harder...
Timestamp Converter
Free online Unix timestamp converter. Convert timestamps to ...
DNS Lookup
Query DNS records online. Look up A, AAAA, CNAME, MX, TXT, N...
Docker Compose Generator
Generate Docker Compose YAML files visually. Add services, c...
Timestamp Batch Converter
Convert multiple timestamps at once. Batch process Unix time...
Cron Expression Generator
Generate and validate Cron expressions online. Convert Cron ...
cURL Converter
Convert cURL commands to Python, JavaScript, PHP, Go, and mo...
CSS Formatter
Format and minify CSS online. Beautify CSS code or compress ...
Code Formatter
Format and beautify code online. Support multiple languages ...
Color Extractor
Extract colors from images online. Get dominant colors and c...