kris revised this gist . Go to revision
1 file changed, 12 insertions
www-redirect(file created)
@@ -0,0 +1,12 @@ | |||
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 | + | } |
Newer
Older