httpd.conf.j2 818 B

1234567891011121314151617181920212223242526272829303132333435
  1. ServerName {{ ansible_fqdn }}
  2. ServerAdmin admin@{{ ansible_fqdn }}
  3. <Directory "/var/www/html">
  4. Options Indexes FollowSymLinks
  5. AllowOverride All
  6. Require all granted
  7. </Directory>
  8. <IfModule http2_module>
  9. Protocols h2 h2c http/1.1
  10. H2Direct on
  11. H2StreamMaxMemSize 5120000000
  12. </IfModule>
  13. <IfModule prefork.c>
  14. StartServers 2
  15. {% if web_status is sameas true %}
  16. MinSpareThreads 25
  17. MaxSpareThreads 75
  18. ThreadLimit 64
  19. ThreadsPerChild 25
  20. {% endif %}
  21. MaxRequestWorkers 150
  22. MaxConnectionsPerChild 1000
  23. </IfModule>
  24. <IfModule mpm_event_module>
  25. StartServers 2
  26. MinSpareThreads 25
  27. MaxSpareThreads 75
  28. ThreadLimit 64
  29. ThreadsPerChild 25
  30. MaxRequestWorkers 150
  31. MaxConnectionsPerChild 1000
  32. </IfModule>
  33. ServerTokens Prod
  34. ServerSignature Off
  35. TraceEnable Off