Only connect to Moodle on the server locally

Only connect to Moodle on the server locally

by Pete Davis -
Number of replies: 1
We have Moodle up and running but we can only access it when we are logged onto the server.  If we use 127.0.0.1\website then it works.  If we try to access it using the name from another computer, we get:


Any ideas?  I've tried the normal things found on the internet such as httpd.conf file, .htaccess, etc.  Nothing seems to indicate where it is getting this security requirement.

Average of ratings: -
In reply to Pete Davis

Re: Only connect to Moodle on the server locally

by Usman Asar -
Picture of Plugin developers Picture of Testers

Pete, it will be config.php file in moodle root directory where you would be making changes, it will be mentioned there "127.0.0.1/moodle" you have to change it to name as you desire, but be aware once you change the name, it wont open with 127.0.0.1/moodle anymore, usually people using it on local network use IP address of the machine e.g. 192.1.2.3 in this way it can be accessed from same computer as well computers on the network.