Hi Joshua,

I put the [R] behind the rule and get a HTTP 400 Error. It says it can't
find the server. The RewriteLog says that I tried to force a redirect to a
URL which does not exist. That's right because the URL I gernerate with
mod_rewrite is fake. 


cheers,
Pete


> --- Ursprüngliche Nachricht ---
> Von: Joshua Slive <[EMAIL PROTECTED]>
> An: users@httpd.apache.org
> Betreff: Re: [EMAIL PROTECTED] Problem mit httpd2 + tomcat5.5.9 + mod_rewrite
> Datum: Mon, 14 Nov 2005 09:28:48 -0500
> 
> On 11/14/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I'm still struggling with the mod_rewrite module in combination with the
> > tomcat server.
> >
> > I changed my configuration to this:
> >
> > LoadModule rewrite_module /usr/lib/apache2/mod_rewrite.so
> > RewriteEngine on
> > RewriteLog /var/log/apache2/mod_rewrite.log
> > RewriteLogLevel 2
> > RewriteRule ^/pnbw/postHv\.html$ /nothing.htm
> >
> > But it still does not work. The log output tells me this:
> >
> > [rid#8182058/initial] (2) init rewrite engine with requested uri
> > /pnbw/postHv.html
> > [rid#8182058/initial] (2) rewrite /pnbw/postHv.html -> /nothing.htm
> > [rid#8182058/initial] (2) local path result: /nothing.htm
> > [rid#8182058/initial] (2) prefixed with document_root to /nothing.htm
> > [rid#8182058/initial] (1) go-ahead with /nothing.htm [OK]
> >
> > This looks like it works. But in the browser window I still see the url
> I
> > wanted to have replaced.
> >
> > Does anybody have an idea what could be wrong?
> 
> If you want "/nothing.htm" to appear in the browser's location bar,
> then add [R] to the end of the RerwriteRule.
> 
> 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: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to