您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

apache2.conf 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # see http://sources.debian.net/src/apache2/2.4.10-1/debian/config-dir/apache2.conf
  2. ServerName netboot
  3. Mutex file:/var/lock/apache2 default
  4. PidFile /var/run/apache2/apache2.pid
  5. Timeout 300
  6. KeepAlive On
  7. MaxKeepAliveRequests 100
  8. KeepAliveTimeout 5
  9. User www-data
  10. Group www-data
  11. HostnameLookups Off
  12. ErrorLog /var/log/apache2/error.log
  13. LogLevel warn
  14. IncludeOptional mods-enabled/*.load
  15. IncludeOptional mods-enabled/*.conf
  16. # ports.conf
  17. Listen 80
  18. <IfModule ssl_module>
  19. Listen 443
  20. </IfModule>
  21. <IfModule mod_gnutls.c>
  22. Listen 443
  23. </IfModule>
  24. DocumentRoot "/var/www/"
  25. <Directory />
  26. Options FollowSymLinks
  27. AllowOverride None
  28. Require all denied
  29. </Directory>
  30. <Directory /var/www/>
  31. Options FollowSymLinks
  32. AllowOverride All
  33. Require all granted
  34. </Directory>
  35. LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
  36. LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  37. LogFormat "%h %l %u %t \"%r\" %>s %O" common
  38. LogFormat "%{Referer}i -> %U" referer
  39. LogFormat "%{User-agent}i" agent
  40. CustomLog /var/log/apache2/access.log combined
  41. <FilesMatch \.php$>
  42. SetHandler application/x-httpd-php
  43. </FilesMatch>
  44. # Multiple DirectoryIndex directives within the same context will add
  45. # to the list of resources to look for rather than replace
  46. # https://httpd.apache.org/docs/current/mod/mod_dir.html#directoryindex
  47. DirectoryIndex disabled
  48. DirectoryIndex index.php index.html