severndigital Posted August 27, 2009 Share Posted August 27, 2009 I don't think Apache is the ideal place to do this, but I'm out of ideas so if anyone can point in the right direction it is much appreciated. we have a single ip address coming into our building. lets say the ip is 123.456.789.012 when a request comes in on that ip for our domain on port 80, it routes to our linux machine running Apache which houses our domain : www.mydomain.com and is at ip 172.16.2.7 what i need to do is when a request is issued for a subdomain like subdomain.mydomain.com I need to forward that request to another internal IP: 172.16.2.8 Like I said, I have a feeling Apache is NOT the place to be doing this, but I have to start somewhere. Thanks in advance, -SD Quote Link to comment https://forums.phpfreaks.com/topic/172181-forwarding-to-another-machine-i-am-at-the-end-of-the-rope/ Share on other sites More sharing options...
steviewdr Posted August 31, 2009 Share Posted August 31, 2009 Your going to have to use apache and mod_proxy. -steve Quote Link to comment https://forums.phpfreaks.com/topic/172181-forwarding-to-another-machine-i-am-at-the-end-of-the-rope/#findComment-909831 Share on other sites More sharing options...
efficacious Posted August 31, 2009 Share Posted August 31, 2009 I'm no pro at this but I do know that the company I register my domain name with. I can setup A Records. Which is basically exactly what your talking about. I can enter that if somone goes to www.mydomain.com it points to >this IP And if somone enters subdomain.mydomain.com it points to >this IP If your domain name register has a system like this it would be an easy way of getting done what you need. ~eff My fault i misread the question.. I see now that the ips your trying to alternate are internal. I don't think A records can be used for Interal IPs. Quote Link to comment https://forums.phpfreaks.com/topic/172181-forwarding-to-another-machine-i-am-at-the-end-of-the-rope/#findComment-909890 Share on other sites More sharing options...
efficacious Posted September 1, 2009 Share Posted September 1, 2009 I was trying to find a solution to your issue.. mainly because I may attempt this very same thing later on. But I happened upon this thread that might be able to point u in the right direction. http://www.unix.com/unix-advanced-expert-users/11230-apache-config-one-ip-multiple-servers.html Quote Link to comment https://forums.phpfreaks.com/topic/172181-forwarding-to-another-machine-i-am-at-the-end-of-the-rope/#findComment-910588 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.