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

I have the VPS server with Centos with php/apache/cpanel/whm.

I have 20 websites hosting mainly with php.

Now i have got few clients who want to use java/jsp on websites.

I want to know that is it possible to use same VPS/whm to host those websites as well or i need different VPS for java or python/django

share|improve this question

migrated from Dec 26 '10 at 17:04

This question came from our site for professional and enthusiast programmers.

possible but not easy, further more it might not be very stable. – Jason Dec 26 '10 at 15:09

You can use NginX as a frontend listening on port 80 to forward requests to backend web servers. It's lightweight and consumes very little memory, so its presence would hardly become a problem for you, performance-wise. NginX forwarding requests to Apache listening on port 90 (for example) and Tomcat or some other java web container/app server listening on port 91 sounds like an ideal solution to me.

share|improve this answer

Yes, either using mod_rewrite or mod_proxy (redirecting requests to another webserver on another port or machine for the new language) or by running multiple modules (e.g. mod_python) in the same apache instance.

share|improve this answer

Your Answer


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