I have Moodle 3.9 running on AWS.
The webserver has a RDS database with a read replica and all works fine.
I decided to scale the webservers using the elastic load balancers just for testing puposes.I created an image of the existing EC2 instance(webserver) and attached the application load balancer of AWS.Now there is this internet facing load balancer followed by the two webservers followed by the RDS Mysql instance with a read replica.
Both the webservers are in healthy state in two different AZ's.When I hit my load balancer DNS in the web browser,the landing page of moodle is reached.But when I click login ,then I get multiple redirects error on chrome and this error " Firefox has detected that the server is redirecting the request for this address in a way that will never complete" on firefox.
I am not using HTTPS or an security certificate.
When I stop one of the webservers everything works fine.
What else needs to be done.