Guest User

httpd.conf

a guest
Jan 11th, 2017
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.42 KB | None | 0 0
  1. cat /etc/apache2/httpd.conf
  2. # This is a modification of the default Apache 2.4 configuration file
  3. # for Gentoo Linux.
  4. #
  5. # Support:
  6. # http://www.gentoo.org/main/en/lists.xml [mailing lists]
  7. # http://forums.gentoo.org/ [web forums]
  8. # irc://irc.freenode.net#gentoo-apache [irc chat]
  9. #
  10. # Bug Reports:
  11. # http://bugs.gentoo.org [gentoo related bugs]
  12. # http://httpd.apache.org/bug_report.html [apache httpd related bugs]
  13. #
  14. #
  15. # This is the main Apache HTTP server configuration file. It contains the
  16. # configuration directives that give the server its instructions.
  17. # See <URL:http://httpd.apache.org/docs/2.4> for detailed information.
  18. # In particular, see
  19. # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
  20. # for a discussion of each configuration directive.
  21. #
  22. # Do NOT simply read the instructions in here without understanding
  23. # what they do. They're here only as hints or reminders. If you are unsure
  24. # consult the online docs. You have been warned.
  25. #
  26. # Configuration and logfile names: If the filenames you specify for many
  27. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  28. # server will use that explicit path. If the filenames do *not* begin
  29. # with "/", the value of ServerRoot is prepended -- so "var/log/apache2/foo_log"
  30. # with ServerRoot set to "/usr" will be interpreted by the
  31. # server as "/usr/var/log/apache2/foo.log".
  32.  
  33. # ServerRoot: The top of the directory tree under which the server's
  34. # configuration, error, and log files are kept.
  35. #
  36. # Do not add a slash at the end of the directory path. If you point
  37. # ServerRoot at a non-local disk, be sure to point the LockFile directive
  38. # at a local disk. If you wish to share the same ServerRoot for multiple
  39. # httpd daemons, you will need to change at least LockFile and PidFile.
  40. # Comment: The LockFile directive has been replaced by the Mutex directive
  41. ServerRoot "/usr/lib64/apache2"
  42.  
  43. # Dynamic Shared Object (DSO) Support
  44. #
  45. # To be able to use the functionality of a module which was built as a DSO you
  46. # have to place corresponding `LoadModule' lines at this location so the
  47. # directives contained in it are actually available _before_ they are used.
  48. # Statically compiled modules (those listed by `httpd -l') do not need
  49. # to be loaded here.
  50. #
  51. # Example:
  52. # LoadModule foo_module modules/mod_foo.so
  53. #
  54. # GENTOO: Automatically defined based on APACHE2_MODULES USE_EXPAND variable.
  55. # Do not change manually, it will be overwritten on upgrade.
  56. #
  57. # The following modules are considered as the default configuration.
  58. # If you wish to disable one of them, you may have to alter other
  59. # configuration directives.
  60. #
  61. # Change these at your own risk!
  62.  
  63. LoadModule access_compat_module modules/mod_access_compat.so
  64. LoadModule actions_module modules/mod_actions.so
  65. LoadModule alias_module modules/mod_alias.so
  66. LoadModule auth_basic_module modules/mod_auth_basic.so
  67. LoadModule authn_anon_module modules/mod_authn_anon.so
  68. LoadModule authn_core_module modules/mod_authn_core.so
  69. LoadModule authn_dbm_module modules/mod_authn_dbm.so
  70. LoadModule authn_file_module modules/mod_authn_file.so
  71. LoadModule authz_core_module modules/mod_authz_core.so
  72. LoadModule authz_dbm_module modules/mod_authz_dbm.so
  73. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  74. LoadModule authz_host_module modules/mod_authz_host.so
  75. LoadModule authz_owner_module modules/mod_authz_owner.so
  76. LoadModule authz_user_module modules/mod_authz_user.so
  77. LoadModule autoindex_module modules/mod_autoindex.so
  78. <IfDefine CACHE>
  79. LoadModule cache_module modules/mod_cache.so
  80. </IfDefine>
  81. LoadModule cgi_module modules/mod_cgi.so
  82. LoadModule cgid_module modules/mod_cgid.so
  83. <IfDefine DAV>
  84. LoadModule dav_module modules/mod_dav.so
  85. </IfDefine>
  86. <IfDefine DAV>
  87. LoadModule dav_fs_module modules/mod_dav_fs.so
  88. </IfDefine>
  89. <IfDefine DAV>
  90. LoadModule dav_lock_module modules/mod_dav_lock.so
  91. </IfDefine>
  92. LoadModule deflate_module modules/mod_deflate.so
  93. LoadModule dir_module modules/mod_dir.so
  94. LoadModule env_module modules/mod_env.so
  95. LoadModule expires_module modules/mod_expires.so
  96. LoadModule ext_filter_module modules/mod_ext_filter.so
  97. <IfDefine CACHE>
  98. LoadModule file_cache_module modules/mod_file_cache.so
  99. </IfDefine>
  100. LoadModule filter_module modules/mod_filter.so
  101. LoadModule headers_module modules/mod_headers.so
  102. LoadModule include_module modules/mod_include.so
  103. <IfDefine INFO>
  104. LoadModule info_module modules/mod_info.so
  105. </IfDefine>
  106. LoadModule log_config_module modules/mod_log_config.so
  107. LoadModule logio_module modules/mod_logio.so
  108. LoadModule mime_module modules/mod_mime.so
  109. LoadModule mime_magic_module modules/mod_mime_magic.so
  110. LoadModule negotiation_module modules/mod_negotiation.so
  111. LoadModule rewrite_module modules/mod_rewrite.so
  112. LoadModule setenvif_module modules/mod_setenvif.so
  113. <IfDefine SSL>
  114. LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
  115. </IfDefine>
  116. LoadModule speling_module modules/mod_speling.so
  117. <IfDefine SSL>
  118. LoadModule ssl_module modules/mod_ssl.so
  119. </IfDefine>
  120. <IfDefine STATUS>
  121. LoadModule status_module modules/mod_status.so
  122. </IfDefine>
  123. LoadModule unique_id_module modules/mod_unique_id.so
  124. LoadModule unixd_module modules/mod_unixd.so
  125. <IfDefine USERDIR>
  126. LoadModule userdir_module modules/mod_userdir.so
  127. </IfDefine>
  128. LoadModule usertrack_module modules/mod_usertrack.so
  129. LoadModule vhost_alias_module modules/mod_vhost_alias.so
  130.  
  131. # If you wish httpd to run as a different user or group, you must run
  132. # httpd as root initially and it will switch.
  133. #
  134. # User/Group: The name (or #number) of the user/group to run httpd as.
  135. # It is usually good practice to create a dedicated user and group for
  136. # running httpd, as with most system services.
  137. User apache
  138. Group apache
  139.  
  140. # Supplemental configuration
  141. #
  142. # Most of the configuration files in the /etc/apache2/modules.d/ directory can
  143. # be turned on using APACHE2_OPTS in /etc/conf.d/apache2 to add extra features
  144. # or to modify the default configuration of the server.
  145. #
  146. # To know which flag to add to APACHE2_OPTS, look at the first line of the
  147. # the file, which will usually be an <IfDefine OPTION> where OPTION is the
  148. # flag to use.
  149. Include /etc/apache2/modules.d/*.conf
  150.  
  151. # Virtual-host support
  152. #
  153. # Gentoo has made using virtual-hosts easy. In /etc/apache2/vhosts.d/ we
  154. # include a default vhost (enabled by adding -D DEFAULT_VHOST to
  155. # APACHE2_OPTS in /etc/conf.d/apache2).
  156. Include /etc/apache2/vhosts.d/*.conf
  157.  
  158. # vim: ts=4 filetype=apache
Advertisement
Add Comment
Please, Sign In to add comment