geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pc3 <peter.r.cl...@gmail.com>
Subject Re: Catch-All App
Date Mon, 05 Feb 2007 15:07:27 GMT

Sorry I meant to reply to this branch
What about just configuring a "global" 404 handler to direct to my JSP...
but I can't find where to configure a server-wide 404 handler. running
geronimo/tomcat 



Nicholas Irving wrote:
> 
> Okay, how about this http://tuckey.org/urlrewrite/
> 
> On 23/01/07, pc3 <peter.r.clark@gmail.com> wrote:
>>
>>
>> Thanks.. but yeah, we have tomcat 5.5.15 running w/ gero
>>
>> Does anyone know how to do it with tc?
>> Pete
>>
>>
>>
>> Nicholas Irving wrote:
>> >
>> > One way is to use mod_rewrite in Apache.
>> >
>> > <IfModule mod_rewrite.c>
>> > RewriteEngine On
>> > RewriteBase /
>> > RewriteCond %{REQUEST_FILENAME} !-f
>> > RewriteCond %{REQUEST_FILENAME} !-d
>> > RewriteRule . /foo/index.jsp [L]
>> > </IfModule>
>> >
>> >
>> > Not sure so sure about how to do this with Tomcat.
>> >
>> > Nicholas Irving
>> > nirving@darkedges.com
>> >
>> > pc3 wrote:
>> >> Hey folks,
>> >>
>> >> I have a webapp at
>> >>
>> >> http://www.myhost.com/foo
>> >>
>> >> I'd like to configure a "catch-all" web application that will take all
>> >> requests for any context other than foo and have them handled by a
>> single
>> >> jsp / servlet... so I can redirect them into the /foo webapp.
>> >>
>> >> E.g. people who request
>> >>
>> >> http://www.myhost.com/bar
>> >> http://www.myhost.com/stink
>> >> http://www.myhost.com/woohooo
>> >>
>> >> ... will go to a single JSP (or whatever I can use.. deployed as one
>> >> webapp
>> >> hopefully).. where I can read the context off the URL and direct them
>> >> somewhere into my webapp...
>> >>
>> >> Thanks!
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Catch-All-App-tf3059593.html#a8513379
>> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Catch-All-App-tf3059593.html#a8807929
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message