httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Enrico Pasqualotto <enrico.pasqualo...@gmail.com>
Subject [users@httpd] Apache 2.4 proxy forward auth to backend
Date Fri, 12 Dec 2014 10:10:49 GMT
Hi all, I've two backend server that require HTTP auth and I need the proxy
ask for it and forward to backend server.
Proxy doesn't have the user/password file.

In Apache 2.2 I solved in this way:

<VirtualHost *:80>

        ProxyPass / balancer://hotcluster/
        <Proxy balancer://hotcluster>
                BalancerMember http://ip1/ loadfactor=20 retry=2
                BalancerMember http://ip2/ status=+H

                AuthBasicAuthoritative Off
                SetEnv proxy-chain-auth On
                AuthType basic
        </Proxy>

    <Location />
            AuthType basic
            AuthBasicAuthoritative Off
            SetEnv proxy-chain-auth On
            Order allow,deny
            Allow from all
    </Location>

</VirtualHost>

But it doesn't work with 2.4 version.

Anyone have suggestion?

Thanks

Mime
View raw message