www-redirect
· 397 B · Text
Raw
# www.example.org redirection
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/letsencrypt/live/example.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.org/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/example.org/chain.pem;
server_name www.example.org;
rewrite ^(.*) https://example.org$1 permanent;
}
1 | # www.example.org redirection |
2 | server { |
3 | listen 443 ssl http2; |
4 | listen [::]:443 ssl http2; |
5 | |
6 | ssl_certificate /etc/letsencrypt/live/example.org/fullchain.pem; |
7 | ssl_certificate_key /etc/letsencrypt/live/example.org/privkey.pem; |
8 | ssl_trusted_certificate /etc/letsencrypt/live/example.org/chain.pem; |
9 | |
10 | server_name www.example.org; |
11 | rewrite ^(.*) https://example.org$1 permanent; |
12 | } |