[wp-trac] [WordPress Trac] #43433: mixed-content for install page stylesheets
WordPress Trac
noreply at wordpress.org
Tue Mar 20 15:13:31 UTC 2018
#43433: mixed-content for install page stylesheets
-------------------------------+------------------------------
Reporter: mimke | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 4.9.1
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by wpmiro):
Hello.
I had the same issue.
I'm using Wordpress 4.9.4.
I'm running it behind an nginx reverse proxy with the necessary proxy
headers:
{{{
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $proxy_connection;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
proxy_set_header X-Forwarded-Ssl $proxy_x_forwarded_ssl;
proxy_set_header X-Forwarded-Port $proxy_x_forwarded_port;
}}}
I've added the following code right before the "That's all, stop
editing..." line in my wp-config.php based on the instructions located at:
https://codex.wordpress.org/Administration_Over_SSL#Using_a_Reverse_Proxy
{{{#!php
// If we're behind a proxy server and using HTTPS, we need to alert
Wordpress of that fact
// see also
http://codex.wordpress.org/Administration_Over_SSL#Using_a_Reverse_Proxy
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) &&
$_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
$_SERVER['HTTPS'] = 'on';
}
}}}
Now it works fine.
Hope that helps :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43433#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list