[users@httpd] mod_proxy_balancer question 2.1.9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
 
i'm using apache 2.1.9beta and mod_proxy_balancer on an AMD Opteron 64 running SLES 9. It compiled well and it runs.
 
There is one special thing:
 
Case 1 : If i make a balancercluster like this [for every context 1 cluster]
 
 ProxyPass /web balancer://wpgcluster lbmethod=byrequests stickysession=JSESSIONID nofailover=On
 <Proxy balancer://wpgcluster>
   BalancerMember http://172.19.15.21:11800/web <http://172.19.15.21:11800/web>  smax=15 loadfactor=1
   BalancerMember http://172.19.15.22:11810/web <http://172.19.15.22:11810/web>  smax=15 loadfactor=1
 </Proxy>
 ProxyPass /som balancer://somcluster lbmethod=byrequests stickysession=JSESSIONID nofailover=On
 <Proxy balancer://somcluster>
   BalancerMember http://172.19.15.21:11800/som <http://172.19.15.21:11800/som>  loadfactor=1
   BalancerMember http://172.19.15.22:11810/som <http://172.19.15.22:11810/som>  loadfactor=1
 </Proxy>
than it is all working without any errors
GET /web/portal       -> 200 OK 
GET /som               -> 200 OK
 
BUT:
Case 2: If i put it all together, because i want to send all requests to the backend servers like this 
 ProxyPass / balancer://somcluster lbmethod=byrequests stickysession=JSESSIONID nofailover=On
 <Proxy balancer://somcluster>
   BalancerMember http://172.19.15.21:11800 <http://172.19.15.21:11800>  loadfactor=1
   BalancerMember http://172.19.15.22:11810 <http://172.19.15.22:11810>  loadfactor=1
 </Proxy>
or this
 ProxyPass / balancer://somcluster lbmethod=byrequests stickysession=JSESSIONID nofailover=On
 <Proxy balancer://somcluster>
   BalancerMember <http://172.19.15.21:11800/> http://172.19.15.21:11800 <http://172.19.15.21:11800/> / loadfactor=1
   BalancerMember <http://172.19.15.22:11810/> http://172.19.15.22:11810 <http://172.19.15.22:11810/> / loadfactor=1
 </Proxy>
than with every Request i get a "403" and inside the error_log there comes a message like
GET /web/portal       -> 403 Forbidden 
GET /som               ->  403 Forbidden
 
[Fri Nov 11 11:38:03 2005] [warn] proxy: No protocol handler was valid for the URL /web/portal. If you are using a DSO version of mod_proxy, mak
e sure the proxy submodules are included in the configuration using LoadModule.

Case 1 is working, but Case 2 not! In Case1 Apache knows to send the request to the backend, but why not in Case 2 ?
 
Any Clue ?
 
Thanks 
 

Oliver Schaudt
 
Used virtuel Hostfile:
===============
Listen balancer.example.com:80
<VirtualHost balancer.example.com:80>
DocumentRoot    "/usr/local/apache/proxy/var/balancer.example.com"
ServerName         balancer.example.com:80
ServerAdmin         webadmin@xxxxxxxxxxx <mailto:webadmin@xxxxxxxxxxx> 
ErrorLog              /usr/local/apache/proxy/var/logs/balancer.example.com/error.log
TransferLog         /usr/local/apache/proxy/var/logs/balancer.example.com/access.log

CacheEnable mem /
CacheDefaultExpire 86400
CacheMaxExpire 604800
CacheIgnoreHeaders Set-Cookie
CacheIgnoreCacheControl On
SetEnvIf User-Agent ".*MSIE.*" ssl-unclean-shutdown
<Location /server-status>
  SetHandler server-status
  Order Deny,Allow
  Deny from all
  Allow from 127.0.0.1
</Location>
ProxyRequests   On
RewriteEngine   On
RewriteLog       /usr/local/apache/proxy/var/logs/balancer.example.com/rewrite.log
RewriteLogLevel 9
RewriteRule       ^/$                        http://balancer.example.com/web <http://balancer.example.com/web>  [R,L]
RewriteRule       ^/auctionhouse(.*)$ http://172.19.15:26:11801/auctionhouse$1 <http://172.19.15:26:11801/auctionhouse$1>  [P,L]
ProxyPass /balancer-manager !
<Location /balancer-manager>
  SetHandler balancer-manager
  Order Deny,Allow
  Deny from all
  Allow from 127.0.0.1
</Location>
ProxyPass /web balancer://wpgcluster lbmethod=byrequests stickysession=JSESSIONID nofailover=On
<Proxy balancer://wpgcluster>
  BalancerMember http://172.19.15.21:11800/web <http://172.19.15.21:11800/web>  smax=15 loadfactor=1
  BalancerMember http://172.19.15.22:11810/web <http://172.19.15.22:11810/web>  smax=15 loadfactor=1
</Proxy>
ProxyPass /som balancer://somcluster lbmethod=byrequests stickysession=JSESSIONID nofailover=On
<Proxy balancer://somcluster>
  BalancerMember http://172.19.15.21:11800/som <http://172.19.15.21:11800/som>  loadfactor=1
  BalancerMember http://172.19.15.22:11810/som <http://172.19.15.22:11810/som>  loadfactor=1
</Proxy>
ProxyPass /bom2 balancer://bom2cluster lbmethod=byrequests stickysession=JSESSIONID nofailover=On
<Proxy balancer://bom2cluster>
  BalancerMember http://172.19.15.21:11800/bom2 <http://172.19.15.21:11800/bom2>  loadfactor=1
  BalancerMember http://172.19.15.22:11810/bom2 <http://172.19.15.22:11810/bom2>  loadfactor=1
</Proxy>
ProxyPass /pm2 balancer://pm2cluster lbmethod=byrequests stickysession=JSESSIONID nofailover=On
<Proxy balancer://pm2cluster>
  BalancerMember http://172.19.15.21:11800/pm2 <http://172.19.15.21:11800/pm2>  loadfactor=1
  BalancerMember http://172.19.15.22:11810/pm2 <http://172.19.15.22:11810/pm2>  loadfactor=1
</Proxy>
ProxyPreserveHost On
ProxyReceiveBufferSize 4096
<Directory proxy:*>
  Deny from all
  Allow from all
</Directory>
</VirtualHost>
 
 
Modules in httpd.conf
================
LoadModule log_config_module libexec/mod_log_config.so
LoadModule env_module libexec/mod_env.so
LoadModule headers_module libexec/mod_headers.so
LoadModule unique_id_module libexec/mod_unique_id.so
LoadModule setenvif_module libexec/mod_setenvif.so
LoadModule rewrite_module libexec/mod_rewrite.so
LoadModule proxy_module libexec/mod_proxy.so
LoadModule proxy_http_module libexec/mod_proxy_http.so
LoadModule proxy_ftp_module libexec/mod_proxy_ftp.so
LoadModule proxy_connect_module libexec/mod_proxy_connect.so
LoadModule proxy_balancer_module libexec/mod_proxy_balancer.so
LoadModule proxy_ajp_module libexec/mod_proxy_ajp.so
LoadModule mime_module libexec/mod_mime.so
LoadModule status_module libexec/mod_status.so
LoadModule autoindex_module libexec/mod_autoindex.so
LoadModule asis_module libexec/mod_asis.so
LoadModule info_module libexec/mod_info.so
LoadModule suexec_module libexec/mod_suexec.so
LoadModule vhost_alias_module libexec/mod_vhost_alias.so
LoadModule dir_module libexec/mod_dir.so
LoadModule actions_module libexec/mod_actions.so
LoadModule alias_module libexec/mod_alias.so
LoadModule negotiation_module libexec/mod_negotiation.so
LoadModule cache_module libexec/mod_cache.so
LoadModule mem_cache_module libexec/mod_mem_cache.so


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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux