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

WordPress Trac noreply at wordpress.org
Sun May 3 05:44:47 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:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list