AWS Lightsail for Beginners: Setup Load Balanced WordPress Site Ep 3




In this final and 3rd episode of setting up a Load Balanced WordPress site on AWS Lightsail, I will show you how to setup a Load Balancer in AWS, configure the DNS to point your custom Domain to it, create and setup a Lightsail Free SSL Certificate and fix an issue with the Bitnami WordPress application.

Episode 1, setup WordPress with S3 Bucket:

Episode 2: setup WordPress with AWS Lightsail Database

For Bitnami WordPress, fix a wp-config issue to host on HTTPS:

In the wp-config.php file, modify the following lines to set the WP_SITEURL and WP_HOME to https:

define(‘WP_SITEURL’, ‘ . $_SERVER[‘HTTP_HOST’] . ‘/’);
define(‘WP_HOME’, ‘ . $_SERVER[‘HTTP_HOST’] . ‘/’);

and right above these lines a added the following:

if (strpos($_SERVER[‘HTTP_X_FORWARDED_PROTO’], ‘https’) !== false)
$_SERVER[‘HTTPS’]=’on’;

That’s it, you should have a fully load balanced WordPress site running on HTTPS SSL Certificate by AWS.
Issues/comments please write below.


Fuente – Source

AWS Lightsail for Beginners: Setup Load Balanced WordPress Site Ep 3

Necesitas ayuda con wp? Entonces WPVideo es tu sitio.
Encuentra lo que buscas entre cientos de miles de videos y experiencias personales de otros usuarios. Todos los que empezamos con wp deberíamos tener acceso a esta web, ojalá yo hubiera tenido algo así cuando empecé mi camino como webmaster 🙂
Pero ahora quiero y puedo poner esta web a vuestra disposición.
Disfrutadla 😉

Need help with wp? Then WPVideo is your site.
Find what you are looking for among hundreds of thousands of videos and personal experiences of other users. All of us who started with wp should have access to this website, I wish I had something like that when I started my journey as webmaster 🙂
But now I want and I can put this website at your disposal.
Enjoy it 😉

https://www.wpvideo.eu

Publicado en Bases de datos (Databases), SSL (HTTPS), Wordpress y etiquetado .

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *