WordPress.org

Make WordPress Core

Opened 7 days ago

Closed 7 days ago

Last modified 7 days ago

#47288 closed defect (bug) (duplicate)

The is_ssl() function will be not playing a part in using reverse proxy

Reported by: rubycedar Owned by:
Milestone: Priority: normal
Severity: normal Version: trunk
Component: Security Keywords:
Focuses: Cc:

Description

The is_ssl() function will be not playing a part in using reverse proxy.

Attachments (1)

load.php (42.2 KB) - added by rubycedar 7 days ago.

Download all attachments as: .zip

Change History (2)

@rubycedar
7 days ago

#1 @SergeyBiryukov
7 days ago

  • Component changed from General to Security
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #31288.

Hi @rubycedar, welcome to WordPress Trac! Thanks for the report.

This is something that comes up often, but is not something that can be fixed due to the nature of handling client-provided headers, which is what's needed to address the issue. See here for more info.

The long and short of it is that this is a server-level configuration issue with reverse proxy web servers. It's not a WordPress issue, and it's not limited to WordPress. There's no need to modify the is_ssl() function. You just need to add something along the lines of the following to your wp-config.php file:

$_SERVER['HTTPS'] = 1;

Any proxy configuration is "supported" by WordPress, you just need to remap the $_SERVER['HTTPS'] server variable based the particular proxy configuration you're using.

Last edited 7 days ago by SergeyBiryukov (previous) (diff)
Note: See TracTickets for help on using tickets.