Advertisement
Guest User

httpd.conf

a guest
May 4th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.33 KB | None | 0 0
  1. #
  2. # /etc/apache2/httpd.conf
  3. #
  4. # This is the main Apache server configuration file. It contains the
  5. # configuration directives that give the server its instructions.
  6. # See <URL:http:///httpd.apache.org/docs/2.4/> for detailed information about
  7. # the directives.
  8.  
  9. # Based upon the default apache configuration file that ships with apache,
  10. # which is based upon the NCSA server configuration files originally by Rob
  11. # McCool. This file was knocked together by Peter Poeml <poeml+apache@suse.de>.
  12.  
  13. # If possible, avoid changes to this file. It does mainly contain Include
  14. # statements and global settings that can/should be overridden in the
  15. # configuration of your virtual hosts.
  16.  
  17. # Quickstart guide:
  18. # http://en.opensuse.org/SDB:Apache_installation
  19.  
  20.  
  21. # Overview of include files, chronologically:
  22. #
  23. # httpd.conf
  24. # |
  25. # |-- uid.conf . . . . . . . . . . . . . . UserID/GroupID to run under
  26. # |-- server-tuning.conf . . . . . . . . . sizing of the server (how many processes to start, ...)
  27. # |-- sysconfig.d/loadmodule.conf . . . . . [*] load these modules
  28. # |-- listen.conf . . . . . . . . . . . . . IP adresses / ports to listen on
  29. # |-- mod_log_config.conf . . . . . . . . . define logging formats
  30. # |-- sysconfig.d/global.conf . . . . . . . [*] server-wide general settings
  31. # |-- mod_status.conf . . . . . . . . . . . restrict access to mod_status (server monitoring)
  32. # |-- mod_info.conf . . . . . . . . . . . . restrict access to mod_info
  33. # |-- mod_usertrack.conf . . . . . . . . . defaults for cookie-based user tracking
  34. # |-- mod_autoindex-defaults.conf . . . . . defaults for displaying of server-generated directory listings
  35. # |-- mod_mime-defaults.conf . . . . . . . defaults for mod_mime configuration
  36. # |-- errors.conf . . . . . . . . . . . . . customize error responses
  37. # |-- ssl-global.conf . . . . . . . . . . . SSL conf that applies to default server _and all_ virtual hosts
  38. # |
  39. # |-- default-server.conf . . . . . . . . . set up the default server that replies to non-virtual-host requests
  40. # | |--mod_userdir.conf . . . . . . . . enable UserDir (if mod_userdir is loaded)
  41. # | `--conf.d/apache2-manual?conf . . . add the docs ('?' = if installed)
  42. # |
  43. # |-- sysconfig.d/include.conf . . . . . . [*] your include files
  44. # | (for each file to be included here, put its name
  45. # | into APACHE_INCLUDE_* in /etc/sysconfig/apache2)
  46. # |
  47. # `-- vhosts.d/ . . . . . . . . . . . . . . for each virtual host, place one file here
  48. # `-- *.conf . . . . . . . . . . . . . (*.conf is automatically included)
  49. #
  50. #
  51. # Files marked [*] are created from sysconfig upon server restart: instead of
  52. # these files, you edit /etc/sysconfig/apache2
  53.  
  54.  
  55.  
  56. # Filesystem layout:
  57. #
  58. # /etc/apache2/
  59. # |-- charset.conv . . . . . . . . . . . . for mod_auth_ldap
  60. # |-- conf.d/
  61. # | |-- apache2-manual.conf . . . . . . . conf that comes with apache2-doc
  62. # | |-- mod_php4.conf . . . . . . . . . . (example) conf that comes with apache2-mod_php4
  63. # | `-- ... . . . . . . . . . . . . . . . other configuration added by packages
  64. # |-- default-server.conf
  65. # |-- errors.conf
  66. # |-- httpd.conf . . . . . . . . . . . . . top level configuration file
  67. # |-- listen.conf
  68. # |-- magic
  69. # |-- mime.types -> ../mime.types
  70. # |-- mod_autoindex-defaults.conf
  71. # |-- mod_info.conf
  72. # |-- mod_log_config.conf
  73. # |-- mod_mime-defaults.conf
  74. # |-- mod_perl-startup.pl
  75. # |-- mod_status.conf
  76. # |-- mod_userdir.conf
  77. # |-- mod_usertrack.conf
  78. # |-- server-tuning.conf
  79. # |-- ssl-global.conf
  80. # |-- ssl.crl/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificate Revocation Lists (CRL)
  81. # |-- ssl.crt/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificates
  82. # |-- ssl.csr/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificate Signing Requests
  83. # |-- ssl.key/ . . . . . . . . . . . . . . PEM-encoded RSA Private Keys
  84. # |-- ssl.prm/ . . . . . . . . . . . . . . public DSA Parameter Files
  85. # |-- sysconfig.d/ . . . . . . . . . . . . files that are created from /etc/sysconfig/apache2
  86. # | |-- global.conf
  87. # | |-- include.conf
  88. # | `-- loadmodule.conf
  89. # |-- uid.conf
  90. # `-- vhosts.d/ . . . . . . . . . . . . . . put your virtual host configuration (*.conf) here
  91. # |-- vhost-ssl.template
  92. # `-- vhost.template
  93.  
  94.  
  95.  
  96. ### Global Environment ######################################################
  97. #
  98. # The directives in this section affect the overall operation of Apache,
  99. # such as the number of concurrent requests.
  100.  
  101. # run under this user/group id
  102. Include /etc/apache2/uid.conf
  103.  
  104. # - how many server processes to start (server pool regulation)
  105. # - usage of KeepAlive
  106. Include /etc/apache2/server-tuning.conf
  107.  
  108. # ErrorLog: The location of the error log file.
  109. # If you do not specify an ErrorLog directive within a <VirtualHost>
  110. # container, error messages relating to that virtual host will be
  111. # logged here. If you *do* define an error logfile for a <VirtualHost>
  112. # container, that host's errors will be logged there and not here.
  113. ErrorLog /var/log/apache2/error_log
  114.  
  115. # generated from APACHE_MODULES in /etc/sysconfig/apache2
  116. Include /etc/apache2/sysconfig.d/loadmodule.conf
  117.  
  118. # IP addresses / ports to listen on
  119. Include /etc/apache2/listen.conf
  120.  
  121. # predefined logging formats
  122. Include /etc/apache2/mod_log_config.conf
  123.  
  124. # generated from global settings in /etc/sysconfig/apache2
  125. Include /etc/apache2/sysconfig.d/global.conf
  126.  
  127. # optional mod_status, mod_info
  128. Include /etc/apache2/mod_status.conf
  129. Include /etc/apache2/mod_info.conf
  130.  
  131. # optional cookie-based user tracking
  132. # read the documentation before using it!!
  133. Include /etc/apache2/mod_usertrack.conf
  134.  
  135. # configuration of server-generated directory listings
  136. Include /etc/apache2/mod_autoindex-defaults.conf
  137.  
  138. # associate MIME types with filename extensions
  139. TypesConfig /etc/apache2/mime.types
  140. Include /etc/apache2/mod_mime-defaults.conf
  141.  
  142. # set up (customizable) error responses
  143. Include /etc/apache2/errors.conf
  144.  
  145. # global (server-wide) SSL configuration, that is not specific to
  146. # any virtual host
  147. Include /etc/apache2/ssl-global.conf
  148.  
  149. # forbid access to the entire filesystem by default
  150. <Directory />
  151. Options None
  152. AllowOverride None
  153. Require all denied
  154. </Directory>
  155.  
  156. # use .htaccess files for overriding,
  157. AccessFileName .htaccess
  158. # and never show them
  159. <Files ~ "^\.ht">
  160. Require all denied
  161. </Files>
  162.  
  163. # List of resources to look for when the client requests a directory
  164. DirectoryIndex index.html index.html.var
  165.  
  166. ### 'Main' server configuration #############################################
  167. #
  168. # The directives in this section set up the values used by the 'main'
  169. # server, which responds to any requests that aren't handled by a
  170. # <VirtualHost> definition. These values also provide defaults for
  171. # any <VirtualHost> containers you may define later in the file.
  172. #
  173. # All of these directives may appear inside <VirtualHost> containers,
  174. # in which case these default settings will be overridden for the
  175. # virtual host being defined.
  176. #
  177. Include /etc/apache2/default-server.conf
  178.  
  179.  
  180. # Another way to include your own files
  181. #
  182. # The file below is generated from /etc/sysconfig/apache2,
  183. # include arbitrary files as named in APACHE_CONF_INCLUDE_FILES and
  184. # APACHE_CONF_INCLUDE_DIRS
  185. Include /etc/apache2/sysconfig.d/include.conf
  186.  
  187.  
  188. ### Virtual server configuration ############################################
  189. #
  190. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  191. # machine you can setup VirtualHost containers for them. Most configurations
  192. # use only name-based virtual hosts so the server doesn't need to worry about
  193. # IP addresses. This is indicated by the asterisks in the directives below.
  194. #
  195. # Please see the documentation at
  196. # <URL:http:///httpd.apache.org/docs/2.4/vhosts/>
  197. # for further details before you try to setup virtual hosts.
  198. #
  199. # You may use the command line option '-S' to verify your virtual host
  200. # configuration.
  201. #
  202. IncludeOptional /etc/apache2/vhosts.d/*.conf
  203.  
  204.  
  205. # Note: instead of adding your own configuration here, consider
  206. # adding it in your own file (/etc/apache2/httpd.conf.local)
  207. # putting its name into APACHE_CONF_INCLUDE_FILES in
  208. # /etc/sysconfig/apache2 -- this will make system updates
  209. # easier :)
  210.  
  211. Include /etc/apache2/conf.d/dokuwiki.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement