Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is something like below possible?

Same VPS with 2 IP Addresses associated with it.

Apache Httpd -> bound to one of the IP Addresses on port 80 -> serving Apache Tomcat -> bound to another IP Address on port 80 ->

If yes, can you please point me to a link which achieves something like this.

share|improve this question
up vote 1 down vote accepted

In the config of each software, you would bind the software to its appropriate IP.

Tomcat ->

Apache ->

share|improve this answer
ok. I think this should solve the problem. Thanks. – Pritam Barhate Mar 27 '12 at 11:37

I'd recommend that you consider using Apache to front-end both sites, and proxy the subdomain connections using something like mod_proxy_ajp. This eliminates the requirement for a second front-end IP, and most folks will agree that Tomcat isn't great for a frontend.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.