Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 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

2 Answers 2

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

 
discard

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