選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

apache2.conf 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
  35. LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  36. LogFormat "%h %l %u %t \"%r\" %>s %O" common
  37. LogFormat "%{Referer}i -> %U" referer
  38. LogFormat "%{User-agent}i" agent
  39. CustomLog /var/log/apache2/access.log combined
  40. <FilesMatch \.php$>
  41. SetHandler application/x-httpd-php
  42. </FilesMatch>
  43. # Multiple DirectoryIndex directives within the same context will add
  44. # to the list of resources to look for rather than replace
  45. # https://httpd.apache.org/docs/current/mod/mod_dir.html#directoryindex
  46. DirectoryIndex disabled
  47. DirectoryIndex index.php index.html