Advertisement
djyarik

Apache >=2.4.* configuration

Feb 26th, 2017
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.59 KB | None | 0 0
  1. # It is split into several files forming the configuration hierarchy outlined
  2. # below, all located in the /etc/apache2/ directory:
  3. #
  4. #   /etc/apache2/
  5. #   |-- apache2.conf
  6. #   |   `--  ports.conf
  7. #   |-- mods-enabled
  8. #   |   |-- *.load
  9. #   |   `-- *.conf
  10. #   |-- conf.d
  11. #   |   `-- *
  12.  
  13. # Global configuration Apache 2.4.*
  14. PidFile ${APACHE_PID_FILE}
  15. Timeout 30
  16. KeepAlive Off
  17. #MaxKeepAliveRequests 300
  18. #KeepAliveTimeout 1
  19.  
  20. #ะ”ะปั 1Gb RAM
  21. <IfModule mpm_prefork_module>
  22.     StartServers          3
  23.     MinSpareServers       3
  24.     MaxSpareServers       6
  25.     ServerLimit           14
  26.     MaxClients            14
  27.     MaxRequestsPerChild   333
  28. </IfModule>
  29. # These need to be set in /etc/apache2/envvars
  30. #User ${APACHE_RUN_USER}
  31. #Group ${APACHE_RUN_GROUP}
  32. User www-data
  33. Group www-data
  34.  
  35. AccessFileName .htaccess
  36. <Files ~ "^\.ht">
  37. Require all denied
  38. </Files>
  39.  
  40. DefaultType None
  41. HostnameLookups Off
  42.  
  43. ErrorLog ${APACHE_LOG_DIR}/error.log
  44. LogLevel warn
  45.  
  46. # Include module configuration:
  47. Include mods-enabled/*.load
  48. Include mods-enabled/*.conf
  49. Include conf-enabled/*.conf
  50. Include conf.d/*.conf
  51.  
  52. # Include list of ports to listen on and which to use for name based vhosts
  53. #Include ports.conf
  54.  
  55. # Include the virtual host configurations:
  56. #Include sites-enabled/
  57.  
  58. LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
  59. LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  60. LogFormat "%h %l %u %t \"%r\" %>s %O" common
  61. LogFormat "%{Referer}i -> %U" referer
  62. LogFormat "%{User-agent}i" agent
  63. LogFormat "%b" bytes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement