Hi, Thanks for the suggestion. There is one line in error_log for each request, like this: [Tue Aug 22 15:04:55 2006] [warn] proxy: No protocol handler was valid for the URL /test.html. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule. Looking at /etc/httpd/conf/httpd.conf, among the other LoadModule statements are the following: LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so LoadModule proxy_ftp_module modules/mod_proxy_ftp.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_connect_module modules/mod_proxy_connect.so httpd configtest and startup/shutdown run fine, i.e. no config file errors. Am I missing a mod_proxy submodule? Or is it something in my cluster configuration, repeated below, that's wrong? ProxyPass / balancer://my_cluster stickysession=jsessionid nofailover=On ProxyPassReverse / balancer://my_cluster <Proxy balancer://my_cluster> BalancerMember http://1.2.3.4 BalancerMember http://5.6.7.8 </Proxy> Thanks again, Yoav On 8/21/06, Pid <p@xxxxxxxxxxx> wrote:
Look in the server error_log to see what the 403 is being issued for, and if that doesn't help, post that to the list and we might be able to help. Yoav Shapira wrote: > Hi, > I'm trying to configure mod_proxy_balancer with a simple cluster and > have run into a configuration problem that has me stumped. It's > probably very simple and I'm just missing something ;) Your help is > appreciated. > > I have three machines, www1.mydomain.com, www2.mydomain.com, and > www3.mydomain.com. All are running httpd 2.2.2 on Fedora Core 5 > (64-bit), with the default httpd.conf file, only the serveradmin email > address is changed. > > I'd like www1 to be the "master" or balancer proxy, so I've created > the following file in /etc/httpd/conf.d/balancer.conf: > > ProxyPass / balancer://mycluster stickysession=jsessionid nofailover=On > ProxyPassReverse / balancer://mycluster > <Proxy balancer://mycluster> > BalancerMember http://[ip address of www2.mydomain.com] > BalancerMember http://[ip address of www3.mydomain.com] > </Proxy> > <Location /balancer-manager> > SetHandler balancer-manager > Order Deny,Allow > Deny from all > Allow from .mydomain.com > </Location> > > On www2 and www3, I created little test files, /var/www/html/test.html > on each machine, with just one line saying "hi I'm www2" on www2, and > "hi i'm www3" on www3. > > Here's what I'm seeing: > - When I access http://www2.mydomain.com/test.html directly, I see the > www2 file, no problem > - When I access http://www3.mydomain.com/test.html directly, I see the > www3 file, no problem > - When I access http://www1.mydomain.com/test.html, I get a 403 > forbidden error. This is the problem. > - When I access http://www1.mydomain.com/ I get the directory listings > from www2 or www3, as expected/. The directory listing includes the > test.html file (with the right size, modification date, etc.), and the > footer includes the correct server name and admin email. But if I > click on test.html I get the 403 error as above. If I refresh, I get > the directory listings from the other server, so I know the balancing > is correctly switching servers with each request. > > What am I missing? Any help would be appreciated. Thank you, > > Yoav > > --------------------------------------------------------------------- > 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 > > > --------------------------------------------------------------------- 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
--------------------------------------------------------------------- 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