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
cURL Converter
Convert cURL commands to Python, JavaScript, PHP, Go, and mo...
HTML Formatter
Format and minify HTML online. Beautify HTML code or compres...
JavaScript Obfuscator
Obfuscate and protect JavaScript code. Make your code harder...
Color Contrast Checker
Check color contrast ratios for WCAG compliance. Ensure acce...
Timestamp Converter
Convert between Unix timestamp and human-readable date. Supp...
WebSocket Tester
Test WebSocket connections and messages in real-time. Connec...
Docker Compose Generator
Generate Docker Compose YAML files visually. Add services, c...
Git Cheatsheet
Quick reference for common Git commands. Search, copy, and u...
CSS Gradient Generator
Generate CSS gradients online. Linear and radial gradients w...
CSS Formatter
Format and minify CSS online. Beautify CSS code or compress ...
Regex Cheatsheet
Quick reference for regular expression patterns. Character c...
Color Converter
Convert between HEX, RGB, HSL color formats. Color picker wi...