Changing IP to domain name

Changing IP to domain name

by Ken Tuley -
Number of replies: 3
I originally set up my Moodle installation using the IP number of the machine. I have since obtained a domain name for the machine. While everything is working, I notice that after I login to the system, the domain name in the url bar changes to the IP number. That's not a problem either. However email that is being sent to AOL users is bouncing due to a 554 error. AOL's page says that's because there is an IP number in the address instead of all domain names.

My router and DNS administrator says it's not his problem (?).

I'm wondering if there's a place in Moodle's configuration that I can add the domain name where I originally placed the static IP?

Any thoughts?

I'm running 1.4.?

Thanks.
Average of ratings: -
In reply to Ken Tuley

Re: Changing IP to domain name

by Jeffery Watkins -
In the config.php file look for this line

$CFG->wwwroot   = 'http://example.com/moodle';

Yours will be the IP address, change to the URL.

Jeff
In reply to Jeffery Watkins

Re: Changing IP to domain name

by Ken Tuley -
Found it.
Changed it.
Now to see what happens.

Thank you very much!

Ken
In reply to Ken Tuley

Re: Changing IP to domain name

by John Dourish -

Might be a good idea to add it to the hosts file on you server as well.

192.168.2.55                           your.domain.com