Advertisement
djyarik

Apache 2.2.22 configuration

Feb 26th, 2017
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.58 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.  
  37. <Files ~ "^\.ht">
  38. Order deny,allow
  39. Deny from all
  40. </Files>
  41.  
  42. DefaultType None
  43. HostnameLookups Off
  44.  
  45. ErrorLog ${APACHE_LOG_DIR}/error.log
  46. LogLevel warn
  47.  
  48. # Include module configuration:
  49. Include mods-enabled/*.load
  50. Include mods-enabled/*.conf
  51.  
  52. # Include list of ports to listen on and which to use for name based vhosts
  53. #Include ports.conf
  54.  
  55. LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
  56. LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  57. LogFormat "%h %l %u %t \"%r\" %>s %O" common
  58. LogFormat "%{Referer}i -> %U" referer
  59. LogFormat "%{User-agent}i" agent
  60. LogFormat "%b" bytes
  61.  
  62. Include conf.d/
  63.  
  64. # Include the virtual host configurations:
  65. #Include sites-enabled/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement