Moodle 3.1 - AWS + ELB (SSL Offload)

Re: Moodle 3.1 - AWS + ELB (SSL Offload)

by Robin Stark -
Number of replies: 4

Could have sworn I tried this before but it seemed to work this time.  Here's what I did:

AWS - Set Listeners on LB to https -> https and specified certificate

on Moodle:

config.php:

wwwroot (changed from http to https)

sslproxy=true

Tried going to the site again and we have HTTPS and everything is displaying/working properly!!!

*shrugs* Happy times and beers I guess

Average of ratings: Useful (2)
In reply to Robin Stark

Re: Moodle 3.1 - AWS + ELB (SSL Offload)

by Sandro Franco -

Hi Robin,

I have been trying to do the same with simillar head-banging-keyboard results. I think Im close to a breakthroug but I would like to know where do you point the healtcheck of the ELB since that i my main issue right now.

In reply to Sandro Franco

Re: Moodle 3.1 - AWS + ELB (SSL Offload)

by Sandro Franco -

I was finally able to solve this.


In my case, as well has following Robin's instructions, I had to set the listener as follows (this is in the case of an AWS classic load balancer):


Load Balancer Protocol
Load Balancer Port
Instance Protocol
Instance Port
Cipher
SSL Certificate
HTTPS443HTTP80xxxxx
xxxxxxxxxxx

and then set the health check like this:

Ping Target
TCP:<portnumber>
Timeout x seconds
Interval xseconds
Unhealthy threshold x
Healthy threshold x

in a classic load balancer when you seth the healt check as tcp it only checks that the receiving instance is capable of receiving in the specified port, therefore, you dont have to worry about setting a healtcheck file such as an index.html.

I'm in the process of setting a fully autoscaling enviroment for moodle in aws. since I have not found any instructions online on how to complete this endeavour I will be posting a full guide once I'm done with the deployment, in case someone else is strugling.


In reply to Sandro Franco

Re: Moodle 3.1 - AWS + ELB (SSL Offload)

by Santhosh KT -

Hello @Rafael Franco, did you publish the guide on this? Appreciate your help here.


In reply to Santhosh KT

Re: Moodle 3.1 - AWS + ELB (SSL Offload)

by Rafael Franco Castro -

Hi @Santozh_KT I created this post under a diferent user. I created a cloud formation script for deploying moodle you can find it here https://github.com/ELRuncho/MoodleCloudFormation


it is still not completed, it will create a functional deployment of moodle but still has some security issues,  but you can follow it since I'm continuously working on improving it