Make WordPress Core

Opened 4 years ago

Last modified 4 years ago

#50065 new defect (bug)

Load balancers forwarding host header with port and redirect loop

Reported by: priyanr's profile priyanr Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Canonical Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

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
request host header from load balancer is :
this causes redirect loop. Debugged issue to wp-includes/canonical.php
Fixed by adding $_SERVER['HTTP_HOST']= '' in wp-config

Please find the attached screen shots

Attachments (1) (139.6 KB) - added by priyanr 4 years ago.

Download all attachments as: .zip

Change History (2)

4 years ago

#1 @SergeyBiryukov
4 years ago

  • Component changed from General to Canonical
  • Description modified (diff)
Note: See TracTickets for help on using tickets.