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

apache2.conf 1.5KB

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