Re: Help with setting up proxy

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

 



On Wed, Sep 14, 2011 at 2:38 PM, Mark Wiltshire
<mark@xxxxxxxxxxxxxxxxxxxxxxxxx> 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: 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