Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache + FPM Load balance problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Fleshdoom
n00b
n00b


Joined: 14 May 2013
Posts: 3

PostPosted: Thu May 23, 2013 8:08 am    Post subject: Apache + FPM Load balance problems Reply with quote

I'm having some problems with apache virtualhosts (vhosts scripts are set in "/home/vhosts/$VHOST")...

<VirtualHost *:80>
ServerName www.site.com
ProxyPass / fcgi://192.168.56.202:9001/home/vhosts/www.site.com/
ProxyPassReverse / fcgi://192.168.56.202:9001/home/vhosts/www.site.com/
ErrorLog "logs/www.site.com-error_log"
CustomLog "logs/www.site.com-access_log" common
</VirtualHost>

This configuration works, when apache receives a request for domain "www.site.com" it will forward it to 192.168.56.202 backendserver and this server finds the proper script at "/home/vhosts/www.site.com".

My problems are concerning load balancing. My configuration is:

<VirtualHost *:80>
ServerName www.site.com
<Proxy balancer://site>
BalancerMember fcgi://192.168.56.204:9001
BalancerMember fcgi://192.168.56.203:9001
</Proxy>
ProxyPass / balancer://site/
ErrorLog "logs/www.site.com-error_log"
CustomLog "logs/www.site.com-access_log" common
</VirtualHost>

But it is not working: requests will be forwarded to those backends, but I can't figure out how to make those BalancerMember backends to point at "/home/vhosts/www.site.com".
How should I do that?
Back to top
View user's profile Send private message
gerdesj
l33t
l33t


Joined: 29 Sep 2005
Posts: 621
Location: Yeovil, Somerset, UK

PostPosted: Wed May 29, 2013 11:52 pm    Post subject: Re: Apache + FPM Load balance problems Reply with quote

For a speedy answer for this question I would suggest that you post your question on an Apache forum. The folk here will do their best to answer some pretty esoteric questions but to be honest you are asking quite a lot.

However, you never know - an expert might post an answer.

Cheers
Jon
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum