fpm-pool.conf.j2 355 B

123456789101112
  1. {% if ansible_prolog -%}
  2. {% from 'templates/ansible/prolog.j2' import prolog with context %}
  3. {{ prolog() }}
  4. {% endif -%}
  5. upstream fpm-backend {
  6. # Depending on the IP ensure that the same server will handle the request
  7. #ip_hash;
  8. {% for num in range(0, fpm_pool_count, 1) %}
  9. server unix:/var/run/php5-fpm-pool-www{{ num }}.sock;
  10. {% endfor %}
  11. }