Internal and External problem.

Internal and External problem.

by Alastair Graham -
Number of replies: 7
Hi guys,

Just a quick query.

I'm finding this hard to get the right words to describe this problem, so please bear with me... it's been one of those days...

When I installed our Moodle onto the college network, it was on trial and we didn't think about external access at that point. Now, we are happy with Moodle and are looking at making it available to the outside world but I've run into a problem.

When I'm outside the college I get the first page no problem (a black page with a link to the moodle index page - http://moodle.gateshead.ac.uk) but the content and styles are all messed up or not showing at all. I'm guessing this has to do with the fact when I set up moodle, I put the local network address to the install and not the 'URL' as it had not been set up.

Is there a way I can change the root of the website to reflect the new URL as opposed to having it point at the network location of it? I think this will solve my problems.

(I have looked around but I can't seem to find where I would do this without changing the actual code in the files)

thanks for your time,

Al
Average of ratings: -
In reply to Alastair Graham

Re: Internal and External problem.

by Alastair Graham -
sorry, I forgot to mention I'm using Moodle 1.7.1 on IIS...
In reply to Alastair Graham

Re: Internal and External problem.

by Ken Wilson -

Hi Al

You need to change your $CFG->wwwroot variable in moodle/config.php so that it reads:

$CFG->wwwroot = 'http://moodle.gateshead.ac.uk';

If you are running a windows network DNS will be on your internal DCs, so add a new forward lookup zone for the host moodle.gateshead.ac.uk with the internal ip address of the server. That way, internal users type http://moodle.gateshead.ac.uk in their browser as well as external ones.

Hope this helps!

Ken

In reply to Ken Wilson

Re: Internal and External problem.

by Alastair Graham -
Hi Ken,

Thank you for the quick response! And I'm glad you could understand my babblings... haha. I'm not having a good day today, I'm not thinking straight and two other guys in my office are coughing and spluttering all over the place with colds.

I'll try that tonight before I go home as I can't test it here.

*Roll on 7:00pm*

thanks again

Al
In reply to Ken Wilson

Re: Internal and External problem.

by Jon Witts -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Ken,

Sorry to hijack this message, but I have just read your post and have a query about adding the Forward Look up zone on a Windows 2003 DNS server.

I have external access to our Moodle site, and at present all users, internal and external, use the same URL to access the site.

Am I right in thinking that without the forward look up zone the internal users are essentially accessing the server through our Internet link, the same as our external users?

If this is the case, will adding the forward lookup zone, mean the internal users will get the full 100 Mbs connection inside for our Moodle site?

If so, this would be great and vastly improve teachers and students experience of Moodle in school. I had a little look at setting up the new forward look up zone on my DNS server but was a little unsure of the settings and records I would need to add. Can you shed anymore light on it for me?

Thank you in advance,

Jon
In reply to Ken Wilson

Re: Internal and External problem.

by Carol Booth -
I think this is going to solve my problem too.
Can someone just clarify one thing for me? On our Windows 2003 server, when our network manager goes to create a new forward lookup zone, he gets options primary, secondary or stub. Which should we choose?
Thanks in advance,
Carol

In reply to Carol Booth

Re: Internal and External problem.

by Richard Enison -
CB,

When I read your post I didn't really have any idea. So I Googled "Windows 2003 server create a new forward lookup zone", and from the results I have read, I would say:
  1. It isn't all that critical, because you can always change the type of zone later.
  2. I would choose primary. See http://www.computerperformance.co.uk/w2k3/services/DNS_install_zones.htm#Creating%20the%20Zones, and follow the link for additional info.
RLE
In reply to Richard Enison

Re: Internal and External problem.

by Carol Booth -

Thanks for your help Richard, this seems to have solved the problem.  I created a new forward lookup zone with all the default options, naming it with the external URL of my site then added a host with no name, just the IP address of the internal server.

Because Moodle refers to all files by their full URL in the database, I have already searched and replaced the internal IP address of my server with the external URL (using http://mymoodlesite/admin/replace.php). This made my pictures re-appear wink