Forum Moderators: phranque

Message Too Old, No Replies

Simple rewrite/redirect to an internal IP

         

danyw

4:30 am on Jul 20, 2009 (gmt 0)

10+ Year Member



Hi folks, I am an Apache newbie who is getting horribly confused with this simple idea.

I have two machines behind my firewall - 1 is an Ubuntu machine, and another is Win2K8 server. All requests to port 80 have been forwarded to the Ubuntu machine running Apache.

Here's what I'd like to do; I'd like all requests made to the URL url1.domain.com to be handled by the Apache machine (192.168.1.3), and those made to url2.domain.com to be handled by the IIS machine (192.168.1.2). It sounds very simple but I'm in already confused by the various instructions/tutorials out there, especially the regex bits.

Is there simple way this can be handled? Where do I insert the redirect/rewrite stuff? Any suggestions would be greatly appreciated.

Many thanks,
Dany.

ogletree

11:17 am on Jul 20, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Unless you have a cheap consumer router you should be able to do it with the router. If you can get 2 ip address you can do it with DNS.