[amazon aws] "Too many redirect" on a fresh install

[amazon aws] "Too many redirect" on a fresh install

by studyingroup com -
Number of replies: 1

Hi all!

I'm trying to install Moodle on Amazon AWS hosting.

I've followed this tutorial: https://www.vultr.com/docs/how-to-install-moodle-on-centos-7

On Amazon AWS, I've opened the ports:

TypeProtocolPort rangeSourceDescription - optional
HTTPTCP800.0.0.0/0-
HTTPTCP80::/0-
SSHTCP220.0.0.0/0-
HTTPSTCP4430.0.0.0/0-
HTTPSTCP443::/0-

When I'm trying to access my site, I've got the error: "Too many redirect"

Checking the access_log:

(redacted: My IP) - - [12/Mar/2021:06:58:46 +0000] "GET / HTTP/1.1" 303 1491
(redacted: My IP) - - [12/Mar/2021:06:58:46 +0000] "GET / HTTP/1.1" 303 1491
(redacted: My IP) - - [12/Mar/2021:06:58:47 +0000] "GET / HTTP/1.1" 303 1491
(redacted: My IP) - - [12/Mar/2021:06:58:47 +0000] "GET / HTTP/1.1" 303 1491
(redacted: My IP) - - [12/Mar/2021:06:58:48 +0000] "GET / HTTP/1.1" 303 1491
(redacted: My IP) - - [12/Mar/2021:06:58:48 +0000] "GET / HTTP/1.1" 303 1491
... (same line goes on)

My database looks like this:

MariaDB [moodle]>  SELECT name, value FROM mdl_config WHERE name IN ('forcelogin','alternateloginurl');
+-------------------+-------+
| name              | value |
+-------------------+-------+
| alternateloginurl |       |
| forcelogin        | 0     |
+-------------------+-------+
What I've tried:
  • I've deleted the cache inside "moodledata"
  • I've deleted the cookies in the browser
  • I've changed the permissions code for the "moodle" folder:
sudo chmod -R 0755 /var/www/html/moodle
sudo find /var/www/html/moodle -type f -exec chmod 0644 {} \;

Thanks a lot!




Average of ratings: -