Jack Moore

Email: jack(at)jmoore53.com
Project Updates

Wordpress Behind HA Proxy with SSL

16 May 2021 » system configuration, sysadmin, eBPF

I had to set a few settings manually due to wordpress throwing a fit with Mixed content errors. The data would render for the webpage, but the css/js wouldn’t load. Here’s the fix:

Certificate Config

Configure the certificate for HAProxy. If you are unfamiliar with the configuration, see the last post.

HA Proxy Advanced Pass Thru on the Frontend

http-response set-header Content-Security-Policy upgrade-insecure-requests

WordPress Configuration

define( 'WP_HOME', 'https://websitenamehere.com/' );
define( 'WP_SITEURL', 'https://websitenamehere.com/' );
define('FORCE_SSL_ADMIN', true);
$_SERVER['HTTPS']='on';
© Jack Moore