rse 97/08/17 13:35:52
Modified: src Tag: APACHE_1_2_X CHANGES mod_rewrite.c Log: Fixed proxy-pass-through feature. Submitted by: Marc Slemko Reviewed by: Dean Gaudet, Ralf S. Engelschall Revision Changes Path No revision No revision 1.286.2.48 +3 -0 apache/src/CHANGES Index: CHANGES =================================================================== RCS file: /export/home/cvs/apache/src/CHANGES,v retrieving revision 1.286.2.47 retrieving revision 1.286.2.48 diff -u -r1.286.2.47 -r1.286.2.48 --- CHANGES 1997/08/15 17:29:47 1.286.2.47 +++ CHANGES 1997/08/17 20:35:48 1.286.2.48 @@ -1,6 +1,9 @@ Changes with Apache 1.2.3 + *) Fixed proxy-pass-through feature of mod_rewrite; Added error logging + information for case where proxy module is not available. [Marc Slemko] + *) Force proxy to always respond as HTTP/1.0, which it was failing to do for errors and cached responses. [Roy Fielding] 1.28.2.3 +6 -3 apache/src/mod_rewrite.c Index: mod_rewrite.c =================================================================== RCS file: /export/home/cvs/apache/src/mod_rewrite.c,v retrieving revision 1.28.2.2 retrieving revision 1.28.2.3 diff -u -r1.28.2.2 -r1.28.2.3 --- mod_rewrite.c 1997/07/31 08:43:15 1.28.2.2 +++ mod_rewrite.c 1997/08/17 20:35:49 1.28.2.3 @@ -925,8 +925,11 @@ /* check if the proxy module is enabled, so we can actually use it! */ - if (!proxy_available) - return FORBIDDEN; + if (!proxy_available) { + log_reason("attempt to make remote request from mod_rewrite " + "without proxy enabled", r->filename, r); + return FORBIDDEN; + } /* make sure the QUERY_STRING and PATH_INFO parts get incorporated */ @@ -3225,7 +3228,7 @@ static int is_proxy_available(server_rec *s) { - return (find_linked_module("mod_proxy") != NULL); + return (find_linked_module("mod_proxy.c") != NULL); }