reverse-proxy.md: use $http_host instead of $host for alternative port

if the nginx port is not 443, the host header won't match, causing a Forbidden: Invalid signature
This commit is contained in:
dongdigua
2025-06-23 01:26:03 +00:00
parent 78f03aec78
commit 67e0fcc6ea
+1 -1
View File
@@ -97,7 +97,7 @@ server {
location / {
proxy_pass http://s3_backend;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header Host $http_host;
# Disable buffering to a temporary file.
proxy_max_temp_file_size 0;
}