Michelle Posted June 1, 2010 Posted June 1, 2010 Hi Another question for you. I am trying to setup my moodle so that it is accessible over the internet. I have configured my firewalls up and am ready to go. The only problem is that I have another app that is respoding to web requests on port 80. I have tried to change the moodle port number but seem to be getting nowhere. Any ideas? Thanks Michelle
Guest Guest Posted June 1, 2010 Posted June 1, 2010 What firewall are you running? ISA can read the http header of a request and act appropriatly.
Michelle Posted June 1, 2010 Author Posted June 1, 2010 Sorry, I forgot to put that. I have a Cisco firewall which forwards traffic to Smoothwall. It is all done on port forwards, but I already have another app on port 80, hence why it is getting confused.
Guest Guest Posted June 1, 2010 Posted June 1, 2010 (edited) Id assume smoothwakk will be able to forward based on http header; basically it opens up the request packet and reads the url to determine where to forward. ie vle.domain.com may be forwarded to 192.168.1.100 while website.domain.com will go to 192.168.1.200 etc Its layer 7 filtering your looking for so if your Cisco firewall is L7 it can do it also. Edited June 1, 2010 by Guest
Michelle Posted June 1, 2010 Author Posted June 1, 2010 All headers get pointed to the cisco box which then forwards all on to smoothwall. I do not see where I can specify which header goes where, but can specify where I can redirect the port to. So, if something comes in on port 80, it goes through to my owa server, if comes in on 591 it goes to moodle. Now, where do I change port 80 to 591 within moodle?
Guest Guest Posted June 1, 2010 Posted June 1, 2010 All headers get pointed to the cisco box which then forwards all on to smoothwall. I do not see where I can specify which header goes where, but can specify where I can redirect the port to. So, if something comes in on port 80, it goes through to my owa server, if comes in on 591 it goes to moodle. Now, where do I change port 80 to 591 within moodle? Which os? *nix? Apache? you need to make apache listen by changing /etc/apache/ports and then you need to tell the site to respond on that port in /etc/apache/sites-availible/default# You can tell smoothwall to change the port number so that although it comes in on 591 it will be passed to the moodle box on port 80.
FN-GM Posted June 1, 2010 Posted June 1, 2010 (edited) What are you using for the webserver software? You will need to change that to listen on the right port. If you are using IIS: 1. Open Internet Service Manager or Internet Information Services (IIS) Manager. 2. If necessary, expand the Web server that you want, and then expand Web Sites. 3. Right-click the Web site that you want to change. 4. Click Properties. 5. Click the Web Site tab. 6. Change the TCP Port Number in the TCP Port edit box (or click Advanced for multiple Port settings). 7. Click OK to save the changes. If you are using Apache: Open httpd.conf file in your text editor. Find this line: Listen 80 change it to: Listen 85 You will also need to change the URL in your config.php file inside moodle. Change the URL in moodle to something this. http://www.mymoodlesite-exampleurl.com:591 it goes through to my owa server Personally for OWA i would run that on 443 - https. Even if you use a self assigned certificate. That way it will be encrypted. Edited June 1, 2010 by FN-GM improvements
Michelle Posted June 8, 2010 Author Posted June 8, 2010 Ok, I have changed OWA to SSL and 443 which seems to be running nicely. Now I am trying to access my moodle from outside of school and although I can get through to the login page, all my linkls are pointing to the internet IP address. Sorry, but I really dont understand the masquerading doc that moodle provide and would really like to get a solution in lay mans terms. Any suggestions?
FN-GM Posted June 8, 2010 Posted June 8, 2010 can you show us some screenshots? Is the all the links or just some. go into your config.php file inside you moodle install and see what the URL is in there. If it is the internal IP change it to the URL.
Michelle Posted June 9, 2010 Author Posted June 9, 2010 It is all links on the page. If I alter the static IP address it will give me the text off the page. (screenshot below) Config: <?php /// Moodle Configuration File unset($CFG); $CFG->dbtype = 'mysql'; $CFG->dbhost = 'localhost'; $CFG->dbname = 'moodle'; $CFG->dbuser = 'root'; $CFG->dbpass = 'very secret password!!; $CFG->dbpersist = false; $CFG->prefix = 'mdl_'; $CFG->wwwroot = 'http://moodle.skegnessgrammar.lincs.sch.uk'; $CFG->dirroot = 'M:\server'; $CFG->dataroot = 'M:\moodledata'; $CFG->admin = 'admin'; $CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode require_once("$CFG->dirroot/lib/setup.php"); // MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES, // RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE. ?> Apologies, I have a screenshot, but dont see how to upload it.Doc1.doc
Michelle Posted June 9, 2010 Author Posted June 9, 2010 Ooh, also, I am attaching a copy of my phpinfo as it seems to be showing all kinds of conflicting information. I do apologise, but I really know very very little about moodle and web technology, more of a nuts of bolts person.phpinfo.doc
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now