httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: [users@httpd] Re: Re[users@httpd] direct Issues (Migrating from 1.3 to 2.0)
Date Mon, 08 Dec 2008 10:26:15 GMT
Chris Graham wrote:
> One other suggestion was to do this:
> RedirectMatch  Permanent /(.*)$1
> However, that ends up with the infinite loop as well. :-(
What probably happens is :
- a request comes in for / (or /x..)
- it gets caught by the redirect rule, and a 302 (moved) response is 
sent back to the browser, indicating a new address of  (or ../hudson/x..)
- the browser immediately and transparently sends back a request for
- this request is caught by the same redirect rule, results in a new 302 
(moved) response, with an address this time of
- and so on for ever

It would not matter if the server to which your redirect sends the 
request was not the same as this one.  But since here it is the same, 
you loop infinitely.

So either you find a way to tell your RedirectMatch that this applies to 
everything *except* URLs that already have "/hudson" in them, or else 
you use mod_rewrite in the way I indicated before.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message