Jump to content

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.