Jump to content

Apache Servers on a Router


snowman4839

Recommended Posts

Is there any way to set up multiple apache HTTP servers that all connect to one router? I'm asking because the only way I know to get one server to work is to port forward port 80 to a the server but my router won't let me port forward the same port (80) to more than one computer so... any ideas?

Link to comment
https://forums.phpfreaks.com/topic/116686-apache-servers-on-a-router/
Share on other sites

Just set your brothers apache install to listen on port 8080 (its in the httpd.conf file) then forward all requests to port 8080 on your router to his machine.

 

Of course, if you had a third machine you could also set up a proxy so you could both listen on port 80 and the proxy would determine where to send each request based on domain name.

I finally got the port change to work but is there any way to get a request to change the port it's requesting for without having to add on :8080 or whatever port your requesting for to the end of the address? I'm just throwing stuff out there but maybe some type of script or maybe an extra snippet in the httpd.conf file? Can you give me a step by step if possible?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.