httpd.conf 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #=======================================================================#
  2. # Hestia Apache configuration file #
  3. # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST! #
  4. #=======================================================================#
  5. ServerRoot "/etc/httpd"
  6. Timeout 30
  7. KeepAlive Off
  8. MaxKeepAliveRequests 100
  9. KeepAliveTimeout 10
  10. <IfModule mpm_prefork_module>
  11. StartServers 8
  12. MinSpareServers 5
  13. MaxSpareServers 20
  14. ServerLimit 256
  15. MaxClients 200
  16. MaxRequestsPerChild 4000
  17. </IfModule>
  18. <IfModule mpm_worker_module>
  19. StartServers 2
  20. MinSpareThreads 25
  21. MaxSpareThreads 75
  22. ThreadLimit 64
  23. ThreadsPerChild 25
  24. MaxClients 200
  25. MaxRequestsPerChild 4000
  26. </IfModule>
  27. <IfModule mpm_event_module>
  28. StartServers 2
  29. MinSpareThreads 25
  30. MaxSpareThreads 75
  31. ThreadLimit 64
  32. ThreadsPerChild 25
  33. MaxClients 200
  34. MaxRequestsPerChild 4000
  35. </IfModule>
  36. User apache
  37. Group apache
  38. AccessFileName .htaccess
  39. <Files ~ "^\.ht">
  40. Order allow,deny
  41. Deny from all
  42. Satisfy all
  43. </Files>
  44. TypesConfig /etc/mime.types
  45. DefaultType None
  46. HostnameLookups Off
  47. ErrorLog /var/log/httpd/error.log
  48. LogLevel warn
  49. # Include module configuration:
  50. Include conf.modules.d/*.conf
  51. # Include list of ports to listen on and which to use for name based vhosts
  52. Include conf/ports.conf
  53. LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
  54. LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  55. LogFormat "%h %l %u %t \"%r\" %>s %O" common
  56. LogFormat "%{Referer}i -> %U" referer
  57. LogFormat "%{User-agent}i" agent
  58. LogFormat "%b" bytes
  59. Include conf.d/*.conf
  60. IncludeOptional conf.d/domains/*.conf
  61. ErrorDocument 403 /error/403.html
  62. ErrorDocument 404 /error/404.html
  63. ErrorDocument 500 /error/50x.html
  64. ErrorDocument 501 /error/50x.html
  65. ErrorDocument 502 /error/50x.html
  66. ErrorDocument 503 /error/50x.html
  67. ErrorDocument 506 /error/50x.html