[wp-trac] [WordPress Trac] #34298: Amazon LB SSL / HTTP_X_FORWARDED_PROTO

WordPress Trac noreply at wordpress.org
Wed Oct 14 16:45:31 UTC 2015


#34298: Amazon LB SSL / HTTP_X_FORWARDED_PROTO
--------------------------+------------------------
 Reporter:  OskHa         |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:
--------------------------+------------------------

Comment (by johnbillion):

 Replying to [comment:4 OskHa]:
 > yes, but its "dirty".

 It's worth pointing out that this isn't "dirty". This is literally the
 correct solution in order to add support for non-standard HTTP headers
 such as `X_FORWARDED_PROTO` which are sent as a result of using a reverse
 proxy, irrespective of whether you're using WordPress or not.

 Also, there's no need for that code to be placed in an `init` callback
 (and will cause issues for code that uses URL functions prior to that
 hook). It should go directly in your `wp-config.php` file (minus the
 unnecessary call to `is_ssl()`.

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


More information about the wp-trac mailing list