+ Post New Thread
Results 1 to 4 of 4
General Chat Thread, Cant Get Moodle to work both internally and externally in General; We have had One Connect create a gateway to our system so we can get external access to our new ...
  1. #1

    Join Date
    Dec 2010
    Location
    Preston
    Posts
    18
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Cant Get Moodle to work both internally and externally

    We have had One Connect create a gateway to our system so we can get external access to our new internal moodle. The redirect in our ISA server and the gateway are fine, have spent the last day or so on these, but we keep getting strange problems with Moodle.
    Initially our "config.php" file was set to our internal address http://moodle.moodle24 this worked fine internally.
    To fit with the redirect we changed this to Redirect initially the site could be seen externally but some of the graphics where not rendering correctly.
    Internally the site could not now be accessed as it got the page
    "This site can only be accessed via http://moodle24.olchs.lancs.sch.uk/moodle24.
    It then tried to redirect and went round in a loop.
    The site is built in windows server 2008 R2 using IIS7, I have no HTTP redirects set, when I set these the site cannot be displayed.
    Do we know any way to get the site to work internally and externally? is this a PHP issue and if so what needs adding?
    Can two entries be made in config.php?
    Any help would be appreciated.

  2. #2


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    338
    Its not terribly good practice having internal resources available from the internet. A better and more simple way is to create a firewalled vlan called a DMZ where both the web and the internal LAN have access over https. This way if the server is compromised, your internal network is still protected by the firewall.

  3. #3

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    Sussex
    Posts
    7,714
    Thank Post
    269
    Thanked 1,116 Times in 1,012 Posts
    Rep Power
    345
    As Cybernerd says it isn't best practice,

    As mentioned on twitter. What is sounds like is that you need to setup an internal record for moodle.doamin.blah.blah internally to point to its internal ip rather than its external.

    Otherwise all traffic is trying to go out to the internet and then back in again which most firewalls do not like!

  4. #4


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    338
    Here's a diagram of what I mean.
    The DMZ ip's and DNS can be internet and internally accessible - you don't need to worry about problems where the internal address and the external address are different because the firewall will NAT to the same place.

    Cant Get Moodle to work both internally and externally-dmzsecuritydeployment.jpg
    Last edited by CyberNerd; 5th April 2013 at 01:49 PM.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 1
    Last Post: 19th January 2009, 12:05 PM
  2. Replies: 7
    Last Post: 21st April 2008, 10:24 AM
  3. Problems getting joomla to work
    By krisd32 in forum Windows
    Replies: 21
    Last Post: 28th March 2006, 09:08 AM
  4. Getting Moodle to logon using a different https port
    By p.simmons in forum Web Development
    Replies: 9
    Last Post: 8th March 2006, 02:35 PM
  5. getting moodle to work on ubuntu
    By pcprofessor in forum *nix
    Replies: 6
    Last Post: 23rd February 2006, 09:07 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •