You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Pe...@gmx.net on 2005/11/08 18:52:52 UTC

[users@httpd] httpd2 + tomcat5.5.9 problem with mod_rewrite

Hello,

I' using mod_jk to connect tomcat to httpd2. This works perfectly. Now I try
to manipulate the URL's which I map to httpd from tomcat. But the rules seem
not to affect the response I get. Does this not work or am I doing something
wrong. 

I my httpd config I have this entry: 

<directory ="/">
LoadModule rewrite_module /usr/lib/apache2/mod_rewrite.so 
RewriteEngine on
RewriteRule ^tricky.html$ post.html
</directory>

LoadModule jk_module /usr/lib/apache2/mod_jk.so
..
JkMount /* worker1

Is there anything wrong?

cheers
Pete

-- 
Telefonieren Sie schon oder sparen Sie noch?
NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] httpd2 + tomcat5.5.9 problem with mod_rewrite

Posted by Joshua Slive <js...@gmail.com>.
On 11/8/05, Peter.Neu@gmx.net <Pe...@gmx.net> wrote:
> Hello,
>
> I' using mod_jk to connect tomcat to httpd2. This works perfectly. Now I try
> to manipulate the URL's which I map to httpd from tomcat. But the rules seem
> not to affect the response I get. Does this not work or am I doing something
> wrong.
>
> I my httpd config I have this entry:
>
> <directory ="/">
> LoadModule rewrite_module /usr/lib/apache2/mod_rewrite.so
> RewriteEngine on
> RewriteRule ^tricky.html$ post.html
> </directory>

I know next to nothing about mod_jk, but this is way off.  There
certainly shouldn't be an "=" sign in the <Directory> block.  The
LoadModule directive should not be inside a <Directory> block.  The
RewriteRule appears to be relative to the root directory of the
filesystem.  I could go on.

At minimum, you will surely want to use the RewriteLog to figure out
what mod_rewrite is actually seeing.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org