Re: Rewriting Redirect 302 headers so that redirection goes through the proxy?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 22, 2010 at 3:51 PM, Andrew J. Leer <leeand00@xxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux