apache.conf 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. ### Basic server config
  2. ServerRoot "/etc/apache"
  3. ServerAdmin you@example.com
  4. #ServerName 127.0.0.1:80
  5. # needs "mod_unixd"
  6. User _apache
  7. Group _apache
  8. ### Error logging of master process
  9. # Possible values include: debug, info, notice, warn, error, crit,
  10. LogLevel warn
  11. ErrorLog "/var/log/httpd/error_log"
  12. ### Load modules
  13. # Load MPM
  14. Include mpm-enabled/*.load
  15. Include mpm-enabled/*.conf
  16. # We can't run without these:
  17. LoadModule authz_core_module /usr/libexec/httpd/mod_authz_core.so
  18. LoadModule log_config_module /usr/libexec/httpd/mod_log_config.so
  19. LoadModule unixd_module /usr/libexec/httpd/mod_unixd.so
  20. # Admin wants these modules:
  21. IncludeOptional mods-enabled/*.load
  22. IncludeOptional mods-enabled/*.conf
  23. # Include listen ports
  24. Include listen.conf
  25. ### Basic security settings
  26. <Directory />
  27. AllowOverride none
  28. Require all denied
  29. </Directory>
  30. <Files ".ht*">
  31. Require all denied
  32. </Files>
  33. <IfModule dir_module>
  34. DirectoryIndex index.html
  35. </IfModule>
  36. <IfModule log_config_module>
  37. CustomLog "/var/log/httpd/access_log" combined
  38. </IfModule>
  39. ### Include additional configs
  40. IncludeOptional conf-enabled/*.conf
  41. IncludeOptional sites-enabled/*.conf