Apache proxy server - in case of wrong credentials, getting 401 instead of 407

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

 



 
 Hi, 
 
I have a very simple setup: Apache back-end server running behind Apache reverse proxy server. 
Using 2.2.21 and running on Windows XP.
 
Generally, it is working as expected - traffic reaching back-end via proxy and responses from back-end server returning to the client. 
Basic and Digest authentication working fine (based on AuthType value) 
 
The problem:    When I send wrong credentials, proxy server replies with error 401 instead of 407, and sending "Authentication" header instead of "Proxy-Authentication" header. 
 
Below the changes I added to default configuration file: 
 
-------------- 
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 http://135.20.77.88/
 ProxyPassReverse http://135.20.77.88/
</Location> 
 
Include conf/extra/httpd-ssl.conf 
-------------- 
 
Any ideas, suggestions would be greatly appretiated. 
 
Thank you.   		 	   		  
---------------------------------------------------------------------
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