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

migrated from stackoverflow.com Dec 26 '10 at 17:04

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

  • 3
    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.


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy