You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by go...@heaven.club.ne.jp on 2002/02/04 09:55:38 UTC

mod_rewrite Problem?

Hi, as  I am Newbie in Tomcat,I have a big problem with Rewriting to tomCat from Apache.
Please send me you suggestions if you can.
I have installed Apache(with mod_rewrite) + Tomcat4 with mod_webapp.
In httpd.conf my settings goes
{Let us suggest that our server Name is test.com}
....
Load webapp_module libexec/mod_webapp.so
Addmodule mod_webapp.c
...
<Virtual Host ....>
ServerName test.com
WebAppConnection warpConnection warp test.com:8008
WebAppDeploy examples warpConnection /examples

RewriteEngine On
RewriteRule .* /Jump
</VirtualHost>

and I want that every request coming to test.com like http://test.com/blahblahblah to be redirected to Java servlet script /Jump,but when I write URL like as:
http://test.com/blahblahblah 
Apache says HTTP Error 404
when I access like :
http://test.com/examples/servlet/Jump
it works!!!!
How can I handle it ?


 



 -- Welcome to ClubBBQ!!! http://www.clubbbq.com --

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: mod_rewrite Problem?

Posted by Dino Cherian K <in...@yahoo.com>.
Hi

Which version of Tomcat and Apache are you using.

Bye

god@heaven.club.ne.jp wrote:
> 
> Hi, as  I am Newbie in Tomcat,I have a big problem with Rewriting to tomCat from Apache.
> Please send me you suggestions if you can.
> I have installed Apache(with mod_rewrite) + Tomcat4 with mod_webapp.
> In httpd.conf my settings goes
> {Let us suggest that our server Name is test.com}
> ....
> Load webapp_module libexec/mod_webapp.so
> Addmodule mod_webapp.c
> ...
> <Virtual Host ....>
> ServerName test.com
> WebAppConnection warpConnection warp test.com:8008
> WebAppDeploy examples warpConnection /examples
> 
> RewriteEngine On
> RewriteRule .* /Jump
> </VirtualHost>
> 
> and I want that every request coming to test.com like http://test.com/blahblahblah to be redirected to Java servlet script /Jump,but when I write URL like as:
> http://test.com/blahblahblah
> Apache says HTTP Error 404
> when I access like :
> http://test.com/examples/servlet/Jump
> it works!!!!
> How can I handle it ?
> 
> 
> 
>  -- Welcome to ClubBBQ!!! http://www.clubbbq.com --
> 
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>