DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=39588>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39588 Summary: Mod_Proxy_Balancer with Mod_Rewrite intermittently connects to incorrect host Product: Apache httpd-2 Version: 2.2.2 Platform: Sun OS/Version: other Status: NEW Severity: normal Priority: P1 Component: mod_proxy_balancer AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] The software is version 2.2.2 (prefork) built with GCC 3.4.2, compilation commands and loaded modules are listed below. We're using mod_rewrite, mod_proxy, and mod_proxy_balancer to distribute requests for a website between 2 Zope instances for local content, and a third-party content provider. The problem occurs intermittently, where requests that should be proxied to a Zope instance running locally on the server are being submitted to the third party content provider, like this configuration snippet: RewriteRule ^/(yyyyyyyyy.*)$ http://content.provider.net/$1 [P,L] RewriteRule ^/(zzzzzzzzz.*)$ http://content.provider.net/$1 [P,L] RewriteRule ^/static(.*)$ /static$1 [L] RewriteRule ^/(.*)$ balancer://zopecluster/VirtualHostBase/http/websites.domain.tld:80/www_site/VirtualHostRoot/$1 [P,L] <Proxy balancer://zopecluster> BalancerMember http://localhost:9080 BalancerMember http://localhost:9081 #BalancerMember http://localhost:9082 #BalancerMember http://localhost:9083 </Proxy> We upped the logging on the servers and extracted the following: access_log: website.domain.tld - - [12/May/2006:17:23:03 -0800] "GET /outages_and_maintenance?[object%20Object] HTTP/1.1" 404 346 error_log: [Fri May 12 17:23:03 2006] [debug] mod_proxy_balancer.c(41): proxy: BALANCER: canonicalising URL //zopecluster/VirtualHostBase/http/website.domain.tld:80/www_site/VirtualHostRoot/outages_and_maintenance [Fri May 12 17:23:03 2006] [debug] mod_proxy_balancer.c(803): proxy: Entering byrequests for BALANCER (balancer://zopecluster) [Fri May 12 17:23:03 2006] [debug] mod_proxy_balancer.c(396): proxy: BALANCER (balancer://zopecluster) worker (http://localhost:9081) rewritten to http://localhost:9081/VirtualHostBase/http/website.domain.tld:80/www_site/VirtualHostRoot/outages_and_maintenance?[object%20Object] [Fri May 12 17:23:03 2006] [debug] mod_proxy.c(736): Running scheme balancer handler (attempt 0) [Fri May 12 17:23:03 2006] [debug] mod_proxy_http.c(1661): proxy: HTTP: serving URL http://localhost:9081/VirtualHostBase/http/website.domain.tld:80/www_site/VirtualHostRoot/outages_and_maintenance?[object%20Object] >>> [Fri May 12 17:23:03 2006] [debug] proxy_util.c(1811): proxy: connecting http://localhost:9081/VirtualHostBase/http/website.domain.tld:80/www_site/VirtualHostRoot/outages_and_maintenance?[object%20Object] to localhost:9081 [Fri May 12 17:23:03 2006] [debug] proxy_util.c(1911): proxy: connected /VirtualHostBase/http/website.domain.tld:80/www_site/VirtualHostRoot/outages_and_maintenance?[object%20Object] to content.provider.net:80 <<<< [Fri May 12 17:23:03 2006] [debug] proxy_util.c(2005): proxy: HTTP: fam 2 socket created to connect to localhost [Fri May 12 17:23:03 2006] [debug] proxy_util.c(2101): proxy: HTTP: connection complete to 64.8.70.102:80 (content.provider.net) [Fri May 12 17:23:03 2006] [debug] mod_proxy_http.c(1443): proxy: start body send [Fri May 12 17:23:03 2006] [debug] mod_headers.c(612): headers: ap_headers_output_filter() [Fri May 12 17:23:03 2006] [debug] mod_proxy_http.c(1530): proxy: end body send [Fri May 12 17:23:03 2006] [debug] proxy_util.c(1769): proxy: HTTP: has released connection for (*) The 404 return is coming from the third-party servers - this has been verified with packet traces running for incoming traffic and outgoing. This behavior appears to be similar to PR 39253 - we upgraded to 2.2.2 in an attempt to correct this behavior noting that this bug had been fixed. My appologies if I should have re-opened that bug vs. opening a new report - this is my first, please be gentle! Thanks again for your time! Ray D. Compiled in modules: core.c prefork.c http_core.c mod_so.c Loaded Modules: core_module (static) mpm_prefork_module (static) http_module (static) so_module (static) authn_file_module (shared) authn_dbm_module (shared) authn_anon_module (shared) authn_dbd_module (shared) authn_default_module (shared) authz_host_module (shared) authz_groupfile_module (shared) authz_user_module (shared) authz_dbm_module (shared) authz_owner_module (shared) authz_default_module (shared) auth_basic_module (shared) auth_digest_module (shared) dbd_module (shared) dumpio_module (shared) ext_filter_module (shared) include_module (shared) filter_module (shared) deflate_module (shared) log_config_module (shared) log_forensic_module (shared) logio_module (shared) env_module (shared) mime_magic_module (shared) cern_meta_module (shared) expires_module (shared) headers_module (shared) ident_module (shared) usertrack_module (shared) unique_id_module (shared) setenvif_module (shared) version_module (shared) ssl_module (shared) mime_module (shared) dav_module (shared) status_module (shared) autoindex_module (shared) asis_module (shared) info_module (shared) cgi_module (shared) dav_fs_module (shared) vhost_alias_module (shared) negotiation_module (shared) dir_module (shared) imagemap_module (shared) actions_module (shared) speling_module (shared) userdir_module (shared) alias_module (shared) rewrite_module (shared) proxy_module (shared) proxy_connect_module (shared) proxy_http_module (shared) proxy_balancer_module (shared) Syntax OK ./configure --prefix=/usr/local/apache-2.2.2 --enable-mods-shared=all - --enable-deflate --enable-ssl=shared --enable-ssl --enable-proxy - --enable-proxy-http --enable-proxy-balancer --with-ssl=/usr/local/ssl -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
