You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tom Evans <te...@googlemail.com> on 2010/02/22 17:27:52 UTC

Re: [users@httpd] Rewriting Redirect 302 headers so that redirection goes through the proxy?

On Mon, Feb 22, 2010 at 3:51 PM, Andrew J. Leer <le...@hotmail.com> wrote:
> I am currently attempting to use my.domain.com as a proxy through which
> users of my site access a business partners site:
> http://domain.to_proxy_through_my_domain.com/
>
> below is the configuration I have so far:
...
> How do I rewrite the headers so that the "Location: " header above reads
>>"http://my.domain.com/my-gateway/default.asp?SessionGUID={02F9DB52-1907-48DF-BE08-E61777D6B192}&do=products"
> instead of
>>"http://domain.to_proxy_through_my_domain.com/default.asp?SessionGUID={02F9DB52-1907-48DF-BE08-E61777D6B192}&do=products"
>
> Thank you,
>   Andrew J. Leer

Use ProxyPassReverse, as described here:

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse

Cheers

Tom

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