实用的 Nginx 配置生成工具
Site
Domain
Path
Document root
www subdomain
CDN
Redirect www to non-www or non-www to www
Listen IPv4, IPv6
HTTPS
HTTP2
Force HTTPS redirect
HSTS
SSL profiles
Certification type
Let’s Encrypt
Custom certificate
OCSP DNS resolvers
Cloudflare Resolver
Google Public DNS
OpenDNS
Security
Referrer-Policy
no-referrer
no-referrer-when-downgrade
origin
origin-when-cross-origin
same-origin
strict-origin
strict-origin-when-cross-origin
unsafe-url
Content-Security-Policy
X-Frame-Options
X-XSS-Protection
X-Content-Type-Options
server_tokens
limit_req (throttle WordPress login)
limit_req
PHP
PHP server
TCP
HHVM socket
5.x socket
7.x socket
PHP backup server
WordPress security essentials
Drupal security essentials
Magento security essentials
Python
Python server
Python backup server
Routing
index
Fallback routing
Angular
React
Vue.js
Ember.js
Laravel
Lumen
Symfony
Zend
CodeIgniter
Yii
CakePHP
Slim
index.php
index.html
Fallback routing PHP (SPA + API support)
Cache
Assets (css(\.map)?|js(\.map)?)
css(\.map)?|js(\.map)?
Media
Images (jpe?g|png|gif|ico|cur|heic|webp|tiff?)
jpe?g|png|gif|ico|cur|heic|webp|tiff?
Audio (mp3|m4a|aac|ogg|midi?|wav)
mp3|m4a|aac|ogg|midi?|wav
Video (mp4|mov|webm|mpe?g|avi|ogv|flv|wmv)
mp4|mov|webm|mpe?g|avi|ogv|flv|wmv
SVG (svgz?)
svgz?
Fonts (ttf|ttc|otf|eot|woff2?)
ttf|ttc|otf|eot|woff2?
Reverse proxy
proxy_pass
Proxy headers
Logging
access_log
error_log
access_log by domain
error_log by domain
log_not_found
nginx
worker_processes
user
pid
client_max_body_size
Tools
Download generated config
Modularized / unified structure (multiple or singe file(s))
Share settings
Reset