Hi Everyone,
I've been trying for a long while to transfer requests from subdomains to various IP's and ports.
I have a few sub domains setup at my provider:
sub1.mydom.com, sub2.mydom.com, sub3.mydom.com (for example).
I'd like for (e.g.):
sub1.mydom.com to go to server1, port 8181
sub2.mydom.com to go to server1, port 8188
sub3.mydom.com to go to server2, port 100
I've installed Tomcat so that all port 80's will be routed to it. But question is, how do I forward the requests to the correct server/port based on the incoming subdomain?
I'm very new at this, and I've done some searching and saw the proxy_pass and proxy_passreverse directives, but the description doesn't seem to describe what I want it to?
Any help would be appreciated!
Thanks in advance.