ApcBundle icon indicating copy to clipboard operation
ApcBundle copied to clipboard

Add support of load balancing (multiple backends)

Open Koc opened this issue 11 years ago • 1 comments

Koc avatar May 07 '14 10:05 Koc

If you don't use php-fpm, i might have a solution: https://github.com/TXMuc/ApcBundle

I added a config parameter 'ip':

  #app/config/config.yml
  ornicar_apc:
      host: yourhost.tld
      ...
      mode: curl
      ip: 127.0.0.1

If the ip parameter is set and curl is used, the http request is sent to the configured IP address (localhost!) with Host:yourhost.tld in the HTTP header. This should work on any servers behind the load balancer.

TXMuc avatar Dec 16 '14 15:12 TXMuc