The proxy code in cvs for both 2.0 and 1.3 includes an option called
ProxyPreserveHost that does just this.
|--------+----------------------------->
| | "Hildenbrand, |
| | Patrick" |
| | <patrick.hildenbran|
| | [EMAIL PROTECTED]> |
| | |
| | 02/20/2002 08:11 AM|
| | Please respond to |
| | modproxy-dev |
| | |
|--------+----------------------------->
>----------------------------------------------------------------------------------------------------------------|
|
|
| To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
|
| cc:
|
| Subject: FW: Reverse Proxy Questions
|
>----------------------------------------------------------------------------------------------------------------|
Hi,
i'm not quite shure to hit the right list, but...
> is it possible to forward the http request without changing the request
> itself like i.e. the alteon loadbalancer does. I.e.
>
> user requests http://a-host.b.com/one
>
> on a.b.com I have configured to forward this request to a.b.internal. For
> the sake of the application the actual request sent to a.b.internal still
> should be http://a-host.b.com/two. So the host part should stay the same
> (currently apache does replace the hostname, while the alteons do not).
>
> using mod_rewrite I configured
> ReWriteCond %{HTTP_HOST} a-host
> ReWriteRule ^/one(.*)$ http://a.b.internal/one$1
>
> any tips ?
>
(or the right list to ask this question on ?)
> Mit besten Gr�ssen,
> Kind regards,
>
> Patrick Hildenbrand