The source web server is sending it as a redirect and it is redirecting the
browser off my reverse proxy to a site that is not available to the outside
world. I've headers unset location and set location "were it should go" but
I'd like to be able to use a regex with wildcards.

Jeff



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Slive
Sent: Monday, July 23, 2007 6:59 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Help!! mod_rewrite location header cant get
correct syntax

On 7/23/07, Eric Covener <[EMAIL PROTECTED]> wrote:
> On 7/23/07, Jeff Murch <[EMAIL PROTECTED]> wrote:
> > I need to rewrite a location header as follows but I can't seem to get
the
> > syntax correct:
> >
> > RewriteRule ^Location: http://server1.domain.com  Location:
> > server2.domain.com [R,L]
>
> Something like this?
>
> RewriteCond %{HTTP:Location} ^http://server1\.domain\.com(.*)
> RewriteRule .* http://server2.domain.com%1 [R,L]

Location is usually a response header, and therefore can't be
rewritten like that. (That notation is for request headers.)

mod_rewrite is probably not the tool for this at all. Why exactly do
you need to rewrite the Location header and in what circumstance?

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]



-- 
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.10.14/912 - Release Date: 7/22/2007
7:02 PM



---------------------------------------------------------------------
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