httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rici Lake <r...@ricilake.net>
Subject ProxyAuthOverride
Date Fri, 08 Apr 2005 18:29:25 GMT
This is a small patch to mod_proxy which implements a single directive:

ProxyAuthOverride 403|404|Off

It overrides 401 returns from the origin server and substitutes them 
with the indicated status code.

This may be an unusual use case, but it does come up once in a while 
when trying to proxy origin servers which insist on sending 401 to 
allow the user to upgrade to an authenticated session; in some cases it 
may be desirable to proxy only anonymous connections to such servers. 
(It would be important to scrub Authorisation: headers from such a 
request.)

A version for 2.0.52 has been lightly tested: 
http://primero.ricilake.net/proxy2.patch
(the patch applies cleanly to 2.0.53).

A version for TRUNK is also available: 
http://primero.ricilake.net/proxy21.patch but I am not completely 
certain about the interaction with balancers and the post_request hook.

Comments are welcome.


Mime
View raw message