Merge pull request #643 from 321hendrik/patch-1

Use redirect instead of rewrite for reverse proxy example
This commit is contained in:
Jacky 2024-10-22 19:31:40 +08:00 committed by GitHub
commit ddc0bf0cdf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,7 +9,7 @@ server {
listen [::]:80;
server_name <your_server_name>;
rewrite ^(.*)$ https://$host$1 permanent;
return 301 https://$host$request_uri;
}
map $http_upgrade $connection_upgrade {