Saltstack Official Apache Formula
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.

210 line
8.1KB

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