A writer sits at a table with a pencil drawing art with an abstract background containing security iconography

Nginx, Varnish and Wordpress with SSL Termination

TL;DR Assuming you’ve already got your reverse proxy running, in wp-config.php add the following: 1 2 3 4 5 6 7 8 9 <?php /** TLS/HTTPS fixes **/ // in some setups HTTP_X_FORWARDED_PROTO might contain a comma-separated list // e.g. http,https so check for https existence. if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) { // update HTTPS server variable to always 'pretend' incoming requests were // performed via the HTTPS protocol. $_SERVER['HTTPS']='on'; } If you’re getting desperate:...

July 6, 2020 · 8 min · 1650 words · Matthew Hartstonge
A writer with a pencil drawing art around a track while sitting in a formula one car

Superfast WordPress

Introduction WordPress is clearly one of the world’s most used Content Management Systems (CMS) commanding over 35% of the internet, and over 60% of the CMS market [1]. Working in Operations (ops), you see your fair share of friends, family and businesses that ask you to set up a WordPress site as their go to blogging platform. This really comes down to WordPress’ ease of use, massive library of themes and it’s modular nature that enables the extension of it’s core via the use of plugins....

March 29, 2020 · 5 min · 1058 words · Matthew Hartstonge