httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From The Gaijin <gai...@gci.net>
Subject [users@httpd] Odd mod_proxy behavior
Date Sat, 13 May 2006 09:49:30 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello -

I'm hoping that I can get another set of eyes to look at a problem I'm
seeing within Apache HTTPd.  Thanks in advance for your time, and my
appologies for the length of the message!

The software is version 2.2.2 (prefork), 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.  Before submitting a new bug report I'd like to verify there are
no "Hey, stupid!" errors, if possible.

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEZaup++jLhGCLtA0RAr3gAJ9IfFJC3gME0rY8HrKyF2f/xjfjDQCfdo05
jBG1Ib9rslpaXzECj8YRQqc=
=PEwI
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message