Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 796861b

Browse files
committed
Merge pull request #128 from appirio-tech/SUP-955-redirect-wp-https
use http_host not server_name
2 parents 6bf8598 + 1175592 commit 796861b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/conf/tc-prod-nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ server {
99
listen [::]:8080 default_server ipv6only=on;
1010

1111
if ($http_x_forwarded_proto != "https") {
12-
return 301 https://$server_name$request_uri;
12+
return 301 https://$http_host$request_uri;
1313
}
1414

1515
set $root_base /home/ubuntu/tc-site;

0 commit comments

Comments
 (0)