snowman4839 Posted July 26, 2008 Share Posted July 26, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/116686-apache-servers-on-a-router/ Share on other sites More sharing options...
PFMaBiSmAd Posted July 26, 2008 Share Posted July 26, 2008 One web server can host multiple domains/sites. What are you actually trying to accomplish with multiple web servers? Quote Link to comment https://forums.phpfreaks.com/topic/116686-apache-servers-on-a-router/#findComment-600055 Share on other sites More sharing options...
snowman4839 Posted July 26, 2008 Author Share Posted July 26, 2008 I was just wondering if it could be done. I set up my computer with Apache so I could access my files anywhere. I was just wondering if there was some way that I could set up my brother's computer too if were connected to the same router. Quote Link to comment https://forums.phpfreaks.com/topic/116686-apache-servers-on-a-router/#findComment-600433 Share on other sites More sharing options...
PFMaBiSmAd Posted July 26, 2008 Share Posted July 26, 2008 Because you only have one external IP address that your router "listens" to, you would need to use a second port number and forward it to the second server, such as port 8080 or 81. Quote Link to comment https://forums.phpfreaks.com/topic/116686-apache-servers-on-a-router/#findComment-600437 Share on other sites More sharing options...
snowman4839 Posted July 26, 2008 Author Share Posted July 26, 2008 But how would you configure that so that my brother's computer sends and recieves his stuff over port 8080 or 81? Quote Link to comment https://forums.phpfreaks.com/topic/116686-apache-servers-on-a-router/#findComment-600522 Share on other sites More sharing options...
snowman4839 Posted July 31, 2008 Author Share Posted July 31, 2008 bump...... Quote Link to comment https://forums.phpfreaks.com/topic/116686-apache-servers-on-a-router/#findComment-604170 Share on other sites More sharing options...
trq Posted July 31, 2008 Share Posted July 31, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/116686-apache-servers-on-a-router/#findComment-604180 Share on other sites More sharing options...
snowman4839 Posted July 31, 2008 Author Share Posted July 31, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/116686-apache-servers-on-a-router/#findComment-604197 Share on other sites More sharing options...
corbin Posted July 31, 2008 Share Posted July 31, 2008 "I set up my computer with Apache so I could access my files anywhere." Seems to me like FTP would make more sense. Quote Link to comment https://forums.phpfreaks.com/topic/116686-apache-servers-on-a-router/#findComment-604264 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.