Different hostnames same ip destination
-
Hi,
I've been looking around now sometime and tried to figure out if this is possible.
If I access jboss.sub.int.domain.com I should be redirected to 10.10.10.30 port 8080
and
if I access app.sub.int.domain.com I should be redirected to 10.10.10.30 port 8442both of the hostnames have same IP (WAN int.)
BR
/zleeper -
I think not.
-
thx for the quick answer, got another solution for my problem so! :D
-
2 Public IPs?
-
yeah :) easiest/quickest way of doing it :)
-
You need a reverse proxy server running on port 80. That is the only way for a single IP.
-
Reverse proxy would work if his links were like:
site1.name1.com
site2.name2.combut I don't think it would do anything to separate simply name1.com from name2.com
But maybe I misunderstand how it works.
-
Reverse proxy would work if his links were like:
site1.name1.com
site2.name2.combut I don't think it would do anything to separate simply name1.com from name2.com
But maybe I misunderstand how it works.
The DNS names can be anything as long as they resolve to the reverse proxy server. The reverse proxy needn't "redirect" the browser to the actual ports either. The individual websites will be displayed directly according to the DNS name and on port 80.
-
So, I can run:
website1.com
website2.com
website3.comon 1 IP and all will land you at different websites?
-
Yes. Even with HTTPS.
-
Might give it a try one day when I have a use for it. Thanks ;D
-
Look up virtual hosts as it applies to apache also.
We run one apache server with multiple websites.
http://httpd.apache.org/docs/2.2/vhosts/