Moodle on a different port number?

This forum post has been removed

Number of replies: 4
The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: Moodle on a different port number?

by Tony Hursh -
Are you using Apache? If so, you can change change the httpd.conf (Apache 1.x) or ports.conf (Apache 2.x) file to listen on a different port number (you'll have to restart the Apache server afterward).

I'm sure the same is probably true for IIS, but I don't remember the procedure offhand.



In reply to Deleted user

Re: Moodle on a different port number?

by Matt Molloy -

Hello Alan,

I'm operating a similar setup to what you are asking. I have a router pointed at one machine designated as the default server. Apache is running there, listening to port 80, and this site can be seen at http://83.70.181.166/moodle

I have some other machines on the same LAN with xampp and moodle installations on. For example, a second machine (a PC) on the same LAN has Apache listening on port 8080, with a moodle setup. On my router, I have just configured a pinhole with the internal ip address of this machine, with the non-standard port number appended. This site can be reached at http://83.70.181.166:8080/moodle/ These and other servers all co-exist on the same LAN, and serve web content through pinholes in my router. As long as I configure each apache to listen on a different port, and use this port number in the URL, all my content makes it on to the web.

Matt

In reply to Deleted user

Re: Moodle on a different port number?

by Marc Grober -
I think Matt provided the response you were looking for, but the question I wanted to ask has I guess more to do with your architecture... You say you have two servers and I don't think note any reason why they both would not respond on port 80 since you are serving them up via router anyway... that is to say traffic from outside to moodle.mydomain.com would be directed to port 80 on your "open" server while traffic inside would via dns or whatever be directed to your internal moodle using the standard port. Is the open server in your DMZ or competely internal?

On the other hand, if you were using the same server to serve up moodle to be accessed via two different routes that is another question altogether. In the most simplest sense httpd does not care how the trafficarrives at the daemon.

Lastly, if you wanted one server to offer two instances of Moodle or have Moodle respond on a different port on a server that is more or less along the lines that Tony addressed. Your httpd can provide multiple instances on multiple ports on the same machine.... Whether or not one could extend that to having two different instances of moodle accessing the same data structure and database is a bit of another matter because of file access conflicts.... One of the networking gurus might have something to offer along those lines....
In reply to Deleted user

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.