Dear co-moodlers,
After having moved to another server my moodle instance (2.9) does not work anymore. When I call school.domain.tld, I get the error message „Incorrect access detected, this server may be accessed only through school.domain.tld address, sorry.“ Both, the automatic and the manual redirect immediately take me back to the same page with the same error message. The URL shown in the address bar really is school.domain.tld.
Before moving to the new server the moodle instance was reached under its own IP address and the same URL. Now I want it to share it's IP with domain.tld and another subdomain called lists.domain.tld. Therefore I configured my apache2 (2.4.7) unter a single IP to hold a virtualhost for each of the two subdomains and the main domain. I am able to ping all three virtualhosts; the ping is always returned from domain.tld, but I guess that's how it's supposed to be. I configured the moodle as a virtualhost with documentroot /var/www/html/moodle and servername school.domain.tld. In config.php I put $CFG->wwwroot='http://school.domain.tld';
Anyone who can explain the infinite redirect and suggest a remedy or a suitable debugging strategy? Merci beaucoup for your answers!
Cordially,
CK