Welcome! Log In Create A New Profile

Advanced

Apache + FPM load balancer CFG problems.

Posted by Renzo Racioppi 
Renzo Racioppi
Apache + FPM load balancer CFG problems.
May 23, 2013 03:40AM
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?

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Renzo Racioppi
Re: Apache + FPM load balancer CFG problems.
May 23, 2013 03:42AM
I tried to add the path info to both proxypass and balancermember but with
no results.

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Anatoly Pashin
Re: Apache + FPM load balancer CFG problems.
May 23, 2013 05:12AM
- ProxyPass / balancer://site/
+ ProxyPass / balancer://site//home/vhosts/www.site.com/http://192.168.56.202:9001/home/vhosts/www.site.com/


2013/5/23 Renzo Racioppi <hellforgetm@gmail.com>

> I tried to add the path info to both proxypass and balancermember but with
> no results.
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "highload-php-en" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to highload-php-en+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



--
Пашин Анатолий,
эникейщик.

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Renzo Racioppi
Re: Apache + FPM load balancer CFG problems.
May 23, 2013 05:24AM
It did not work. I noticed also that for balancermembers, also ping and
status page do not work... All errors I had are: "AH01071: Got error
'Primary script unknown\n'"

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Jérôme Loyet
Re: Apache + FPM load balancer CFG problems.
May 23, 2013 06:22AM
stop using apache and using nginx instead ... :-(


2013/5/23 Renzo Racioppi <hellforgetm@gmail.com>

> It did not work. I noticed also that for balancermembers, also ping and
> status page do not work... All errors I had are: "AH01071: Got error
> 'Primary script unknown\n'"
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "highload-php-en" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to highload-php-en+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Renzo Racioppi
Re: Apache + FPM load balancer CFG problems.
May 24, 2013 06:00AM
I found this: https://bugs.php.net/bug.php?id=62172
He had my balancer problem and he published a "naive" patch which was not
set in php retail release. I'll recompile with that patch and see what
will happen. If this goes wrong too I'll move to nginx. Is Nginx + FPM with
LB and virtualhost a popular solution?

Il giorno giovedì 23 maggio 2013 12:21:25 UTC+2, Jérôme Loyet ha scritto:
>
> stop using apache and using nginx instead ... :-(
>

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Jérôme Loyet
Re: Apache + FPM load balancer CFG problems.
May 24, 2013 06:08AM
I don't know if it's popular (I bet it is) but it works like a charm and is
production ready. I'm using it for site generating several gbps without any
problem.

++ Jerome


2013/5/24 Renzo Racioppi <hellforgetm@gmail.com>

> I found this: https://bugs.php.net/bug.php?id=62172
> He had my balancer problem and he published a "naive" patch which was not
> set in php retail release. I'll recompile with that patch and see what
> will happen. If this goes wrong too I'll move to nginx. Is Nginx + FPM with
> LB and virtualhost a popular solution?
>
> Il giorno giovedì 23 maggio 2013 12:21:25 UTC+2, Jérôme Loyet ha scritto:
>
>> stop using apache and using nginx instead ... :-(
>>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "highload-php-en" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to highload-php-en+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Renzo Racioppi
Re: Apache + FPM load balancer CFG problems.
May 24, 2013 06:44AM
Ok, that patch worked but result page does not load img resources...

Il giorno venerdì 24 maggio 2013 12:07:37 UTC+2, Jérôme Loyet ha scritto:
>
> I don't know if it's popular (I bet it is) but it works like a charm and
> is production ready. I'm using it for site generating several gbps without
> any problem.
>
> ++ Jerome
>
>
> 2013/5/24 Renzo Racioppi <hellf...@gmail.com <javascript:>>
>
>> I found this: https://bugs.php.net/bug.php?id=62172
>> He had my balancer problem and he published a "naive" patch which was not
>> set in php retail release. I'll recompile with that patch and see what
>> will happen. If this goes wrong too I'll move to nginx. Is Nginx + FPM with
>> LB and virtualhost a popular solution?
>>
>> Il giorno giovedì 23 maggio 2013 12:21:25 UTC+2, Jérôme Loyet ha scritto:
>>
>>> stop using apache and using nginx instead ... :-(
>>>
>> --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "highload-php-en" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to highload-php-...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: Apache + FPM load balancer CFG problems.
May 24, 2013 09:56AM
All we use is nginx + php-fpm..

nginx runs as a reverse proxy load balancer to other nginx servers which
talk to php-fpm.


On Fri, May 24, 2013 at 5:07 AM, Jérôme Loyet <jerome@loyet.net> wrote:

> I don't know if it's popular (I bet it is) but it works like a charm and
> is production ready. I'm using it for site generating several gbps without
> any problem.
>
> ++ Jerome
>
>
> 2013/5/24 Renzo Racioppi <hellforgetm@gmail.com>
>
>> I found this: https://bugs.php.net/bug.php?id=62172
>> He had my balancer problem and he published a "naive" patch which was not
>> set in php retail release. I'll recompile with that patch and see what
>> will happen. If this goes wrong too I'll move to nginx. Is Nginx + FPM with
>> LB and virtualhost a popular solution?
>>
>> Il giorno giovedì 23 maggio 2013 12:21:25 UTC+2, Jérôme Loyet ha scritto:
>>
>>> stop using apache and using nginx instead ... :-(
>>>
>> --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "highload-php-en" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to highload-php-en+unsubscribe@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "highload-php-en" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to highload-php-en+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



--
Vid Luther
CEO and Founder
ZippyKid
Managed Wordpress Hosting
http://zippykid.com/
210-789-0369

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 307
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready