Hi,
I am not sure this is the correct location for this thread but here goes. I have recently set up a Moodle site using EasyPHP. It all works great internally. While my luck was in I decided to create a subdomain and point it to my internal moodle server so it can be accessed from home. In the root I created a simple index.html file for test purposes and it works fine from outside the school.
The problem is when (from home) I point to the moodle folder it takes forever and then there are loads of issues. One thing I notice in the status window is that it is trying connect to the server's internal IP.
ok, so within the Moodle config.php file i find $CFG-> ='192.168.0.1'; so I change it to the subdomain address and bingo it works from home but no longer in school. LOL - aahh
Does anybody know how I get around this. Is it possible to somehow detect whether the site is being accessed from an external or internal source?
Thanks in advance
Dzon
I am not sure this is the correct location for this thread but here goes. I have recently set up a Moodle site using EasyPHP. It all works great internally. While my luck was in I decided to create a subdomain and point it to my internal moodle server so it can be accessed from home. In the root I created a simple index.html file for test purposes and it works fine from outside the school.
The problem is when (from home) I point to the moodle folder it takes forever and then there are loads of issues. One thing I notice in the status window is that it is trying connect to the server's internal IP.
ok, so within the Moodle config.php file i find $CFG-> ='192.168.0.1'; so I change it to the subdomain address and bingo it works from home but no longer in school. LOL - aahh
Does anybody know how I get around this. Is it possible to somehow detect whether the site is being accessed from an external or internal source?
Thanks in advance
Dzon