Forum Moderators: phranque

Message Too Old, No Replies

Apache proxy server

In case of wrong credentials, getting 401 instead of 407

         

Steve114

10:01 pm on Nov 14, 2011 (gmt 0)

10+ Year Member



Hi,

I have a very simple setup: Apache backend server running behind Apache reverse proxy server.
Using latest 2.2.21 and running on Windows XP

Generally, it is working as expected - traffic reaching backend via proxy and responces from backend server returning to the client.
Basic and Digest authentication working fine (based on AuthType value)

The problem I see is that when I send wrong credentials, proxy server replies with 401 instead of 407, and sending "Authentication" header instead of "Proxy-Authentication" header.

Compared to default configuration file, my config does not have many changes, below is what I added to default:

--------------
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule ssl_module modules/mod_ssl.so

ProxyRequests off

<Location /mirror/1/>
AuthType Basic
AuthDigestDomain /
AuthDigestAlgorithm MD5
AuthDigestNcCheck Off
AuthName "WS Group@ipoffice"
AuthUserFile C:/pwd.txt
Require valid-user
ProxyPass [135.20.77.88...]
ProxyPassReverse [135.20.77.88...]
</Location>

Include conf/extra/httpd-ssl.conf
--------------

Any ideas, suggestions would be greatly appretiated.

Thank you.