fpm-pool.conf.j2 496 B

12345678910111213141516
  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. {% if ansible_lsb.major_release|int >= 9 %}
  10. server unix:/run/php/php{{ php_version }}-fpm-pool-www{{ num }}.sock;
  11. {% else %}
  12. server unix:/var/run/php5-fpm-pool-www{{ num }}.sock;
  13. {% endif %}
  14. {% endfor %}
  15. }