Hi,
I'm kinda new to setting up a moodle server, so sorry for any mistakes or dumb statements I might write.
I've installed Moodle 3.1 in a new server according to this guide. Everything went smooth, I was able to access moodle from the server (localhost).
The problem appeared when trying to change it to one of the company's public domain.
So, from what I understood in said guide, went to "config.php" and changed "$CFG->wwwroot" to "http//moodle.companyname.com" (example, of course), and also changed to "DocumentRoot /var/www/html/moodle" in the apache2 "000-default.conf", so I could access moodle just by typing "http//moodle.companyname.com" in the browser.
At this point I got the "too many redirects" problem. I've been searching for days but still no solution. Tried to delete "moodledata" folder as sugested in other topics, tried to change back apache's DocumentRoot to "/var/www/html", but then I would only access the apache default "welcome" page.
Any ideas what I might be doing wrong?
Thanks