geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicholas Irving <nirv...@darkedges.com>
Subject Re: Catch-All App
Date Mon, 22 Jan 2007 21:00:13 GMT
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! 
>   

Mime
View raw message