nginx-kit/examples/example.com.conf
2026-06-05 12:54:22 +08:00

21 lines
405 B
Text

server {
listen 80;
listen [::]:80;
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
server_name primary.example.com
alias1.example.com
alias2.example.com;
index index.html index.htm;
include snippets/cert/mydomain.com.conf;
include kit/security.conf;
include kit/ssl/security.conf;
include kit/ssl/hsts.conf;
include kit/redirect/to-primary-domain.conf;
include kit/ssl/force.conf;
}