I am moving a moodle site to AWS behind a classic elastic load balancer. to EC2 Instance(s).
The load balancers works with https listener, cert, etc. and is forwarding to the apache server at the correct document root for apache. which is /var/www/html/moodle in this case.
If I place a phpinfo.php file in the directory I can reach it fine with https://mysite.com/phpinfo.php
So it's all working as expected.. except for moodle.
I have edited the ..moodle/config.php and it is correctly set to use http://mysite.com (note the http, not https) Locally, I was running https in the apache server directly, when I moved to AWS the ELB terminates the SSL connection and forwards as http.
When the browser attempts to connect, it gets a "too many redirects" message and I can see it hitting the apache access log multiple times for the same uri.
Any ideas?
My sense is that something in the moodle database is causing this to redirect back to https, perhaps some embedded links in the sql database?
Thanks,
-Steve