The FSFE planet, a blog aggregator of posts from our community https://planet.fsfe.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

httpd.conf 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. ServerRoot "/usr/local/apache2"
  2. ServerAdmin admin@fsfe.org
  3. Listen 80
  4. LoadModule mpm_event_module modules/mod_mpm_event.so
  5. LoadModule authn_file_module modules/mod_authn_file.so
  6. LoadModule authn_core_module modules/mod_authn_core.so
  7. LoadModule authz_host_module modules/mod_authz_host.so
  8. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  9. LoadModule authz_user_module modules/mod_authz_user.so
  10. LoadModule authz_core_module modules/mod_authz_core.so
  11. LoadModule access_compat_module modules/mod_access_compat.so
  12. LoadModule auth_basic_module modules/mod_auth_basic.so
  13. LoadModule ldap_module modules/mod_ldap.so
  14. LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
  15. LoadModule reqtimeout_module modules/mod_reqtimeout.so
  16. LoadModule filter_module modules/mod_filter.so
  17. LoadModule mime_module modules/mod_mime.so
  18. LoadModule log_config_module modules/mod_log_config.so
  19. LoadModule env_module modules/mod_env.so
  20. LoadModule headers_module modules/mod_headers.so
  21. LoadModule setenvif_module modules/mod_setenvif.so
  22. LoadModule version_module modules/mod_version.so
  23. LoadModule unixd_module modules/mod_unixd.so
  24. LoadModule status_module modules/mod_status.so
  25. LoadModule autoindex_module modules/mod_autoindex.so
  26. LoadModule dir_module modules/mod_dir.so
  27. LoadModule alias_module modules/mod_alias.so
  28. LoadModule rewrite_module modules/mod_rewrite.so
  29. <IfModule unixd_module>
  30. User daemon
  31. Group daemon
  32. </IfModule>
  33. <Directory />
  34. AllowOverride none
  35. </Directory>
  36. DocumentRoot "/usr/local/apache2/htdocs"
  37. <Directory "/usr/local/apache2/htdocs">
  38. AllowOverride FileInfo Options
  39. Require all granted
  40. </Directory>
  41. # Redirect /en planet to root to prevent duplicated pages
  42. RewriteEngine On
  43. RewriteRule ^/en/(.*) /$1 [L,R=permanent]
  44. <Files ".ht*">
  45. Require all denied
  46. </Files>
  47. ErrorLog /proc/self/fd/2
  48. LogLevel warn
  49. <IfModule log_config_module>
  50. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  51. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  52. <IfModule logio_module>
  53. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  54. </IfModule>
  55. CustomLog /proc/self/fd/1 common
  56. </IfModule>
  57. <IfModule alias_module>
  58. ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
  59. </IfModule>
  60. <IfModule dir_module>
  61. DirectoryIndex index.html
  62. </IfModule>
  63. <IfModule headers_module>
  64. RequestHeader unset Proxy early
  65. </IfModule>
  66. <IfModule mime_module>
  67. TypesConfig conf/mime.types
  68. AddType application/x-compress .Z
  69. AddType application/x-gzip .gz .tgz
  70. </IfModule>
  71. <IfModule proxy_html_module>
  72. Include conf/extra/proxy-html.conf
  73. </IfModule>
  74. <IfModule ssl_module>
  75. SSLRandomSeed startup builtin
  76. SSLRandomSeed connect builtin
  77. </IfModule>