Mod_proxy_balancer issues

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

 



Hello,

I'm trying to create two balancers within a single virtual host in order
to distinguish between static content and dynamically generated
(application) data.

I have two webservers; on each one, I run an apache instance for static
content on port 81, documentroot /var/www/html-static and an apache
instance for application data on port 80, documentroot /var/www/html-apps

I've tried the following setup

<VirtualHost _default_:443>

   ProxyRequests Off

   <Proxy *>
     Order deny,allow
     Allow from all
   </Proxy>

   ProxyPass /static/ balancer://static-cluster/
   ProxyPass /apps/ balancer://apps-cluster/

   <Proxy balancer://static-cluster>
     BalancerMember http://web1.domain:81 loadfactor=1
     BalancerMember http://web2.domain:81 loadfactor=1
   </Proxy>

   <Proxy balancer://apps-cluster>
     BalancerMember http://web1.domain:80 loadfactor=1
     BalancerMember http://web2.domain:80 loadfactor=1
   </Proxy>

</VirtualHost>

I've omitted proxypassreverse directives for now, but my general problem
is that getting cluster/static/index html or cluster/apps/index.html
sometimes tries to retrieve the index.html from a wrong apache instance
(ie getting static/... from aport 80 apache when it should connect to port
81 instances).

So my questions are: is what I'm trying to do supported (> 1 balancer in a
single virtual host, depending on the URL accessed), and if so, what am I
conceptually doing wrong in my setup?

(I have already tried lots of different permutations of using / omitting
trailing slashes to the paths mentioned)

Pieter

---------------------------------------------------------------------
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