httpd.conf 947 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ServerRoot "/etc/httpd"
  2. Listen 80
  3. Include conf.modules.d/*.conf
  4. User apache
  5. Group apache
  6. ServerAdmin root@localhost
  7. ErrorLog /dev/stderr
  8. TransferLog /dev/stdout
  9. <Directory />
  10. AllowOverride none
  11. Require all denied
  12. </Directory>
  13. DocumentRoot "/var/www/html"
  14. <Directory "/var/www">
  15. AllowOverride None
  16. Require all granted
  17. </Directory>
  18. <Directory "/var/www/html">
  19. Options Indexes FollowSymLinks
  20. AllowOverride None
  21. Require all granted
  22. </Directory>
  23. <IfModule dir_module>
  24. DirectoryIndex index.html
  25. </IfModule>
  26. <Files ".ht*">
  27. Require all denied
  28. </Files>
  29. LogLevel info
  30. <IfModule mime_module>
  31. TypesConfig /etc/mime.types
  32. AddType application/x-compress .Z
  33. AddType application/x-gzip .gz .tgz
  34. AddType text/html .shtml
  35. AddOutputFilter INCLUDES .shtml
  36. </IfModule>
  37. AddDefaultCharset UTF-8
  38. <IfModule mime_magic_module>
  39. MIMEMagicFile conf/magic
  40. </IfModule>
  41. EnableSendfile on
  42. IncludeOptional conf.d/*.conf