Skip to content

Commit

Permalink
set location instead of full return
Browse files Browse the repository at this point in the history
  • Loading branch information
Haizzz committed Jun 24, 2021
1 parent 485afbb commit bff7d0f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tedxuwa_nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ server {
}

server_name ticket.tedxuwa.com;
return 307 https://tedxuwa.com/tickets$request_uri;
location / {
return 307 https://tedxuwa.com/tickets$request_uri;
}

listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/tedxuwa.com/fullchain.pem; # managed by Certbot
Expand All @@ -96,8 +98,9 @@ server {
}

server_name tickets.tedxuwa.com;
return 307 https://tedxuwa.com/tickets$request_uri;

location / {
return 307 https://tedxuwa.com/tickets$request_uri;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/tedxuwa.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/tedxuwa.com/privkey.pem; # managed by Certbot
Expand All @@ -112,7 +115,9 @@ server {
}

server_name t.tedxuwa.com;
return 307 https://tedxuwa.com/r$request_uri;
location / {
return 307 https://tedxuwa.com/r$request_uri;
}

listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/tedxuwa.com/fullchain.pem; # managed by Certbot
Expand Down

0 comments on commit bff7d0f

Please sign in to comment.