fpm-pool.conf.j2 944 B

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