Virtual Learning Platforms Thread, Changing Port Number in Technical; Hi
Another question for you.
I am trying to setup my moodle so that it is accessible over the internet. ...
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.
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.
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.
Last edited by j17sparky; 1st June 2010 at 11:22 AM.
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?
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.
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
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?
$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.