I have a CentOS5 server with Apache, which have one external IP address with the hostname "example.com".
What I like is that
sub1.example.com sends http requests to 10.10.10.10
sub2.example.com sends http requests to 10.20.20.20
Looking at the mod_proxy for Apache, I can't figure out what I need to configure to get that.
Does someone know how to do this?
Best Answer
You'll have to create two virtual hosts for apache one for each subdomain, acting as a reverse proxy to the specified ip.
something along the lines of