You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by KEREM ERKAN <ke...@basari.com.tr> on 2005/09/14 14:22:11 UTC

RE: How to serve just JSP (was: Re: JSP on RHEL4 with Apache http d RPM?

 

> -----Original Message-----
> From: Peter Flynn [mailto:pflynn@ucc.ie] 
> Sent: Wednesday, September 14, 2005 2:40 PM
> To: Tomcat Users List
> Subject: RE: How to serve just JSP (was: Re: JSP on RHEL4 
> with Apache http d RPM?
> 
> On Wed, 2005-09-14 at 12:19, KEREM ERKAN wrote:
> > > 
> > > Unfortunately I have to keep the main port 80 httpd, as 
> it's serving 
> > > 20Gb of other material (the entire campus web site).
> > > 
> > > All I need is the trick to make Apache httpd hand off any 
> .jsp files 
> > > to Tomcat.
> > > 
> > As I am newly subscribed to this list, I don't know if you 
> have got a 
> > satisfactory answer for your question, but if you don't; I have the 
> > same configuration like yours, static files are served by 
> Apache and 
> > *.jsp files are served by Tomcat.
> 
> That's exactly what I want.

OK, start with downloading and installing a binary version of Tomcat for
your OS and also download the 1.2.10 version of mod_jk. I think we should
handle the rest off list not to bother the list anymore.


RE: How to serve just JSP (was: Re: JSP on RHEL4 with Apache http d RPM?

Posted by Peter Flynn <pf...@ucc.ie>.
On Wed, 2005-09-14 at 13:22, KEREM ERKAN wrote:
> OK, start with downloading and installing a binary version of Tomcat for
> your OS and also download the 1.2.10 version of mod_jk. I think we should
> handle the rest off list not to bother the list anymore.

Yes, that's lot's already installed and has been running 
fine. 

///Peter



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: How to serve just JSP (was: Re: JSP on RHEL4 with Apache httpd RPM?

Posted by Peter Flynn <pf...@ucc.ie>.
On Wed, 2005-09-14 at 14:04, Michael Lai wrote:
> KEREM ERKAN wrote:
> 
> >OK, start with downloading and installing a binary version of Tomcat for
> >your OS and also download the 1.2.10 version of mod_jk. I think we should
> >handle the rest off list not to bother the list anymore.
> >
> 
> Just to give you another option if you like.  I don't even use mod_jd.  
> I make use of Apache's reverse proxy feature.  In my httpd.conf, I add 
> the following lines in my virtual host:

[snip]

That's extremely useful, thanks.

But I don't want to serve a single whole directory Tomcat,
I need to server about a dozen isolated JSP files.

Can ProxyPass hand off *.jsp to Tomcat rather than a whole 
directory?

///Peter



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: How to serve just JSP (was: Re: JSP on RHEL4 with Apache httpd RPM?

Posted by Michael Lai <ml...@michael.lai.name>.
KEREM ERKAN wrote:

>OK, start with downloading and installing a binary version of Tomcat for
>your OS and also download the 1.2.10 version of mod_jk. I think we should
>handle the rest off list not to bother the list anymore.
>

Just to give you another option if you like.  I don't even use mod_jd.  
I make use of Apache's reverse proxy feature.  In my httpd.conf, I add 
the following lines in my virtual host:

ProxyPass /app http://localhost:8081/
ProxyPassReverse /app http://localhost:8081/

Just make sure you have loaded the following modules:

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so

What the above does is when Apache sees an url like:

http://www.myhost.com/app

It passes all traffic to tomcat which is listening to port 8081 (on the 
same machine).  The beauty of this is that you can put this in your 
ssl.conf too and Apache will handle all encrypted traffic and passes it 
on to tomcat.  The only advantage I see from mod_jk is if you are using 
it for load balancing too.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org