[wp-trac] [WordPress Trac] #50065: Load balancers forwarding host header with port and redirect loop

WordPress Trac noreply at wordpress.org
Sun May 3 10:05:07 UTC 2020


#50065: Load balancers forwarding host header with port and redirect loop
--------------------------+------------------------------
 Reporter:  priyanr       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Canonical     |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * component:  General => Canonical


Old description:

> When running wordpress behind oracle cloud load balancer (ssl terminated
> there) redirection loop happens. After debugging its found oracle load
> balancer is appending port in host header.
> eg for https://testwp.mydomain.com
> request host header from load balancer is :
> https://testwp.mydomain.com:443
> this causes redirect loop. Debugged issue to wp-includes/canonical.php
> Fixed by adding $_SERVER['HTTP_HOST']=  'testwp.mydomain.com' in wp-
> config
>

> Please find the attached screen shots

New description:

 When running wordpress behind oracle cloud load balancer (ssl terminated
 there) redirection loop happens. After debugging its found oracle load
 balancer is appending port in host header.
 eg for https://testwp.mydomain.com
 request host header from load balancer is :
 https://testwp.mydomain.com:443
 this causes redirect loop. Debugged issue to wp-includes/canonical.php
 Fixed by adding `$_SERVER['HTTP_HOST']=  'testwp.mydomain.com'` in wp-
 config


 Please find the attached screen shots

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50065#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list