You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Timo Lotterbach <Ti...@bmw-carit.de> on 2016/05/10 10:17:40 UTC

[users@httpd] Need Help with Proxy Setup

Hi everyone,

I have some trouble setting up a proxy to a backend server, which
itself is only accessible using another http proxy with authentication.
Required setup looks like this:

    <my_server>/backend  ->  user:pass@proxy:port  -> backend/path

Access from <my_server> was tested this way:

    curl --proxy-basic -k -v \
         --proxy http://<user>:<pass>@<proxy>:<port> \
         https://<backend>/path

I already tried several settings based on my limited google
search results, but these did not succeed so far.
My current config snippet (failed tries left in intentionally):

    ProxyRequests off
    ProxyVia on
    ProxyPreserveHost on
    SSLProxyEngine on
    SSLProxyVerify none
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off
    SSLProxyCheckPeerExpire off
    
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>

    ProxyPass        "/backend/" "https://<backend>/<path>/"
    ProxyPassReverse "/backend/" "https://<backend>/<path>/"

    <Location "/backend/">
        #AuthType basic
        #AuthBasicAuthoritative Off
        #SetEnv proxy-chain-auth On
        #ProxyRemote "https://<backend>" "http://<proxy>:<port>"
        SetEnv HTTPS_PROXY=http://<user>:<pass>@<proxy>:<port>
        Order deny,allow
        Allow from all
    </Location>


Any help is much appreciated.

Thanks, Timo