fpm-pool.conf.j2 954 B

123456789101112131415161718192021222324252627282930
  1. {% if ansible_prolog -%}
  2. {% from 'templates/ansible/prolog.j2' import prolog with context %}
  3. {{ prolog() }}
  4. {% endif -%}
  5. <IfModule proxy_fcgi_module>
  6. <FilesMatch ".+\.ph(p[3457]?|t|tml)$">
  7. {% if ansible_lsb.major_release|int >= 9 %}
  8. SetHandler "proxy:unix:/run/php/php{{ php_version }}-fpm-pool-www0.sock|fcgi://localhost"
  9. {% else %}
  10. SetHandler "proxy:unix:/var/run/php5-fpm-pool-www0.sock|fcgi://localhost"
  11. {% endif %}
  12. </FilesMatch>
  13. <FilesMatch ".+\.phps$">
  14. <IfVersion >= 2.4>
  15. Require all denied
  16. </IfVersion>
  17. <IfVersion < 2.4>
  18. Deny From All
  19. </IfVersion>
  20. </FilesMatch>
  21. # Deny access to files without filename (e.g. '.php')
  22. <FilesMatch "^\.ph(p[3457]?|t|tml|ps)$">
  23. <IfVersion >= 2.4>
  24. Require all denied
  25. </IfVersion>
  26. <IfVersion < 2.4>
  27. Deny From All
  28. </IfVersion>
  29. </FilesMatch>
  30. </IfModule>