Add www redirect for goosefarminvesting
Some checks are pending
Deploy Nginx Config to Ubuntu Server / deploy (push) Waiting to run
Some checks are pending
Deploy Nginx Config to Ubuntu Server / deploy (push) Waiting to run
This commit is contained in:
parent
c8f2b32d45
commit
007b9c0b63
@ -432,12 +432,16 @@ server {
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name goosefarminvesting.com;
|
||||
server_name goosefarminvesting.com www.goosefarminvesting.com;
|
||||
|
||||
location /.well-known/acme-challenge/ {
|
||||
alias /var/www/html/.well-known/acme-challenge/;
|
||||
}
|
||||
|
||||
if ($host = www.goosefarminvesting.com) {
|
||||
return 301 https://goosefarminvesting.com$request_uri;
|
||||
}
|
||||
|
||||
location = / {
|
||||
return 301 https://$host/goosefarm/;
|
||||
}
|
||||
@ -450,13 +454,17 @@ server {
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name goosefarminvesting.com;
|
||||
server_name goosefarminvesting.com www.goosefarminvesting.com;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/goosefarminvesting.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/goosefarminvesting.com/privkey.pem;
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||
|
||||
if ($host = www.goosefarminvesting.com) {
|
||||
return 301 https://goosefarminvesting.com$request_uri;
|
||||
}
|
||||
|
||||
location = / {
|
||||
return 301 https://$host/goosefarm/;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user