I'm trying to set up my first cluster and am trying to understand some
things.

I am using the latest downloads of Apache 2.2 and Tomcat 6.0.29, all on
some form of Windows.

Currently, I just trying to test the setup using the basic install of
Tomcat, no webapps loaded yet.

My real issue is the proper setting up of the ProxyPass directives on
the Apache server.

Here are the relevant portions of httpd.conf:

 

# Example:

# LoadModule foo_module modules/mod_foo.so

#

LoadModule actions_module modules/mod_actions.so

LoadModule alias_module modules/mod_alias.so

LoadModule asis_module modules/mod_asis.so

LoadModule auth_basic_module modules/mod_auth_basic.so

#LoadModule auth_digest_module modules/mod_auth_digest.so

#LoadModule authn_alias_module modules/mod_authn_alias.so

#LoadModule authn_anon_module modules/mod_authn_anon.so

#LoadModule authn_dbd_module modules/mod_authn_dbd.so

#LoadModule authn_dbm_module modules/mod_authn_dbm.so

LoadModule authn_default_module modules/mod_authn_default.so

LoadModule authn_file_module modules/mod_authn_file.so

#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so

#LoadModule authz_dbm_module modules/mod_authz_dbm.so

LoadModule authz_default_module modules/mod_authz_default.so

LoadModule authz_groupfile_module modules/mod_authz_groupfile.so

LoadModule authz_host_module modules/mod_authz_host.so

#LoadModule authz_owner_module modules/mod_authz_owner.so

LoadModule authz_user_module modules/mod_authz_user.so

LoadModule autoindex_module modules/mod_autoindex.so

#LoadModule cache_module modules/mod_cache.so

#LoadModule cern_meta_module modules/mod_cern_meta.so

LoadModule cgi_module modules/mod_cgi.so

#LoadModule charset_lite_module modules/mod_charset_lite.so

#LoadModule dav_module modules/mod_dav.so

#LoadModule dav_fs_module modules/mod_dav_fs.so

#LoadModule dav_lock_module modules/mod_dav_lock.so

#LoadModule dbd_module modules/mod_dbd.so

#LoadModule deflate_module modules/mod_deflate.so

LoadModule dir_module modules/mod_dir.so

#LoadModule disk_cache_module modules/mod_disk_cache.so

#LoadModule dumpio_module modules/mod_dumpio.so

LoadModule env_module modules/mod_env.so

#LoadModule expires_module modules/mod_expires.so

#LoadModule ext_filter_module modules/mod_ext_filter.so

#LoadModule file_cache_module modules/mod_file_cache.so

#LoadModule filter_module modules/mod_filter.so

#LoadModule headers_module modules/mod_headers.so

#LoadModule ident_module modules/mod_ident.so

#LoadModule imagemap_module modules/mod_imagemap.so

LoadModule include_module modules/mod_include.so

#LoadModule info_module modules/mod_info.so

LoadModule isapi_module modules/mod_isapi.so

#LoadModule ldap_module modules/mod_ldap.so

#LoadModule logio_module modules/mod_logio.so

LoadModule log_config_module modules/mod_log_config.so

#LoadModule log_forensic_module modules/mod_log_forensic.so

#LoadModule mem_cache_module modules/mod_mem_cache.so

LoadModule mime_module modules/mod_mime.so

#LoadModule mime_magic_module modules/mod_mime_magic.so

LoadModule negotiation_module modules/mod_negotiation.so

LoadModule proxy_module modules/mod_proxy.so

LoadModule proxy_ajp_module modules/mod_proxy_ajp.so

LoadModule proxy_balancer_module modules/mod_proxy_balancer.so

#LoadModule proxy_connect_module modules/mod_proxy_connect.so

#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so

#LoadModule proxy_http_module modules/mod_proxy_http.so

#LoadModule proxy_scgi_module modules/mod_proxy_scgi.so

#LoadModule reqtimeout_module modules/mod_reqtimeout.so

#LoadModule rewrite_module modules/mod_rewrite.so

LoadModule setenvif_module modules/mod_setenvif.so

#LoadModule speling_module modules/mod_speling.so

#LoadModule ssl_module modules/mod_ssl.so

LoadModule status_module modules/mod_status.so

#LoadModule substitute_module modules/mod_substitute.so

#LoadModule unique_id_module modules/mod_unique_id.so

#LoadModule userdir_module modules/mod_userdir.so

#LoadModule usertrack_module modules/mod_usertrack.so

#LoadModule version_module modules/mod_version.so

#LoadModule vhost_alias_module modules/mod_vhost_alias.so

.......

<Location /balancer-manager>

  SetHandler balancer-manager

  

#  Order Deny,Allow

#  Deny from all

#  Allow from 10.1.1.0, 127.0.0.1

</Location> 

 

ProxyPass / balancer://mycluster stickysession=JSESSIONID|jsessionid
scolonpathdelim=On

 

<Proxy balancer://mycluster>

                BalancerMember ajp://prtltest01:8009 route=tomcat1
loadfactor=50

                BalancerMember ajp://prtltest02:8009 route=tomcat2
loadfactor=50

</Proxy>

 

The problem is that while I get the Tomcat welcome page, I don't get any
of the graphics and none of the links work.  If I change the ProxyPass
to ProxyPassMatch then it works.  The errors I get from Apache are:

 

[Tue Nov 02 18:19:24 2010] [warn] proxy: No protocol handler was valid
for the URL /tomcat.gif. If you are using a DSO version of mod_proxy,
make sure the proxy submodules are included in the configuration using
LoadModule.

[Tue Nov 02 18:19:24 2010] [warn] proxy: No protocol handler was valid
for the URL /asf-logo-wide.gif. If you are using a DSO version of
mod_proxy, make sure the proxy submodules are included in the
configuration using LoadModule.

[Tue Nov 02 18:19:24 2010] [warn] proxy: No protocol handler was valid
for the URL /tomcat-power.gif. If you are using a DSO version of
mod_proxy, make sure the proxy submodules are included in the
configuration using LoadModule.

 

The Apache docs appear to suggest that this should work, but it
obviously doesn't.  I'm wondering why?

 

Jeff

(Yes, I know this might be better directed to the Apache listserv, but
figured you guys have enough experience at this that you could answer
it.  Plus, I didn't want to join a new list just yet.)

=================================================================
Jeffrey W. Janner            e-mail: jeffrey.jan...@polydyne.com
<mailto:jeffrey.jan...@polydyne.com> 
PolyDyne Software Inc.          web: http://www.polydyne.com/
<http://www.polydyne.com/> 
9390 Research Blvd.           phone: (512) 343-9100 x8930
Building 1, Suite 400           fax: (512) 343-9297
Austin, TX 78759
=================================================================

 

__________________________________________________________________________

Confidentiality Notice:  This Transmission (including any attachments) may 
contain information that is privileged, confidential, and exempt from 
disclosure under applicable law.  If the reader of this message is not the 
intended recipient you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly prohibited.  

If you have received this transmission in error, please immediately reply to 
the sender or telephone (512) 343-9100 and delete this transmission from your 
system.

Reply via email to