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 run into this scenario where I have a Rackspace VPS server running Ubuntu 10.10 with Tomcat 6 serving a moderately complex JAVA WebApp using a fixed domain. The problem is that I would like to better utilize this setup and use Lighttpd to serve requests to other domains through Lighttpd. The issue is that I would like to have Tomcat 6 face all the requests and handle requests to its own domain only while forwarding all others to Lighttpd.

I have seen the reverse setup with Lighttpd handling requests and forwarding only specific requests to Tomcat 6 however, I would like to leave Tomcat 6's setup as is other than let it forward requests to domains it isn't serving to Lighttpd.

Is this possible?

share|improve this question
    
I am not sure you can do that. I think it will be better to receive the requests by another web server: lighttpd or apache, and then forward some requests to tomcat. –  Khaled Dec 10 '11 at 14:29

1 Answer 1

up vote 0 down vote accepted

use mod_proxy

Maybe this article from 2007 will help: http://rackerhacker.com/2007/04/05/lighttpd-proxy-to-tomcat/

I would say however that you would need lighttpd in front of tomcat. The other way around would be more of a hassle ... I would never put tomcat as the entry web server, it is just not suited for that, in my opinion.

share|improve this answer
1  
I think I will be going with this approach as setting up Lighttpd to proxy is way more easier than Tomcat. –  DeeTee Dec 11 '11 at 14:18

Your Answer

 
discard

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.