On Wed, Sep 14, 2011 at 2:38 PM, Mark Wiltshire
<[email protected]> wrote:
> Hi everyone,
> I need a little assistance setting up a Reverse Proxy on Apache 2.0.59
> Situation
> --------------
> I have a server 172.16.0.141 which hosts our website.
> This website sources Adverts from another server 172.16.2.150
> I want to set up a proxy server on 172.16.0.141 so that the original website
> will link through to itself. to get these adverts.
> i.e. when I call 172.16.0.141/adverts this will proxy through to
> 172.16.2.150/adverts
> The server 172.16.0.141 has an https certificate which we use for login
> The server 172.16.2.150 does not have https certificate.
> I have set up the following so far in my httpd.conf
> -------------
> ProxyRequests off
> ProxyPass /adverts/ http://172.16.0.141/adverts/
> <Location /adverts/>
> ProxyPassReverse /
> </Location>
> -------------
> But when I hit 172.16.0.141/adverts/default.aspx I get the following error:
>
> Proxy Error
>
> The proxy server received an invalid response from an upstream server.
> The proxy server could not handle the request GET /adverts/default.aspx.
>
> Reason: Max-Forwards has reached zero - proxy loop?
>
> What am I doing wrong ?
Your ProxyPassReverse is gibberish. Replace with this:
<Location /adverts/>
ProxyPassReverse http://172.16.0.141/adverts/
</Location>
Which is equivalent to the shorter version (no location block):
ProxyPassReverse /adverts/ http://172.16.0.141/adverts/
> And how can I cater for https calls on the original web server, being routed
> through to the un-secure web server without a warning to the end user?
> Many thanks
> Regards
> Mark
You'll need to elaborate on what you mean there.
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: [email protected]
" from the digest: [email protected]
For additional commands, e-mail: [email protected]