Saltstack Official Apache Formula
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

236 Zeilen
9.0KB

  1. #
  2. # This file is managed by Salt! Do not edit by hand
  3. #
  4. #
  5. # /etc/apache2/httpd.conf
  6. #
  7. # This is the main Apache server configuration file. It contains the
  8. # configuration directives that give the server its instructions.
  9. # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information about
  10. # the directives.
  11. # Based upon the default apache configuration file that ships with apache,
  12. # which is based upon the NCSA server configuration files originally by Rob
  13. # McCool. This file was knocked together by Peter Poeml <poeml+apache@suse.de>.
  14. # If possible, avoid changes to this file. It does mainly contain Include
  15. # statements and global settings that can/should be overridden in the
  16. # configuration of your virtual hosts.
  17. # Quickstart guide:
  18. # http://en.opensuse.org/SDB:Apache_installation
  19. # Overview of include files, chronologically:
  20. #
  21. # httpd.conf
  22. # |
  23. # |-- uid.conf . . . . . . . . . . . . . . UserID/GroupID to run under
  24. # |-- server-tuning.conf . . . . . . . . . sizing of the server (how many processes to start, ...)
  25. # |-- loadmodule.conf . . . . . . . . . . . [*] load these modules
  26. # |-- listen.conf . . . . . . . . . . . . . IP adresses / ports to listen on
  27. # |-- mod_log_config.conf . . . . . . . . . define logging formats
  28. # |-- global.conf . . . . . . . . . . . . . [*] server-wide general settings
  29. # |-- mod_status.conf . . . . . . . . . . . restrict access to mod_status (server monitoring)
  30. # |-- mod_info.conf . . . . . . . . . . . . restrict access to mod_info
  31. # |-- mod_reqtimeout.conf . . . . . . . . . set timeout and minimum data rate for receiving requests
  32. # |-- mod_cgid-timeout.conf . . . . . . . . set CGIDScriptTimeout if mod_cgid is loaded/active
  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. # `-- vhosts.d/ . . . . . . . . . . . . . . for each virtual host, place one file here
  44. # `-- *.conf . . . . . . . . . . . . . (*.conf is automatically included)
  45. #
  46. #
  47. # Files marked [*] are NOT read when server is started via systemd service. When server
  48. # is started via service, defaults from /etc/sysconfig/apache2 are taken into account.
  49. #
  50. # Filesystem layout:
  51. #
  52. # /etc/apache2/
  53. # |-- charset.conv . . . . . . . . . . . . for mod_auth_ldap
  54. # |-- conf.d/
  55. # | |-- apache2-manual.conf . . . . . . . conf that comes with apache2-doc
  56. # | |-- mod_php4.conf . . . . . . . . . . (example) conf that comes with apache2-mod_php4
  57. # | `-- ... . . . . . . . . . . . . . . . other configuration added by packages
  58. # |-- default-server.conf
  59. # |-- errors.conf
  60. # |-- httpd.conf . . . . . . . . . . . . . top level configuration file
  61. # |-- listen.conf
  62. # |-- magic
  63. # |-- mime.types -> ../mime.types
  64. # |-- mod_autoindex-defaults.conf
  65. # |-- mod_info.conf
  66. # |-- mod_log_config.conf
  67. # |-- mod_mime-defaults.conf
  68. # |-- mod_perl-startup.pl
  69. # |-- mod_status.conf
  70. # |-- mod_userdir.conf
  71. # |-- mod_usertrack.conf
  72. # |-- server-tuning.conf
  73. # |-- ssl-global.conf
  74. # |-- ssl.crl/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificate Revocation Lists (CRL)
  75. # |-- ssl.crt/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificates
  76. # |-- ssl.csr/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificate Signing Requests
  77. # |-- ssl.key/ . . . . . . . . . . . . . . PEM-encoded RSA Private Keys
  78. # |-- ssl.prm/ . . . . . . . . . . . . . . public DSA Parameter Files
  79. # |-- global.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 default value of APACHE_MODULES in /etc/sysconfig/apache2
  101. <IfDefine !SYSCONFIG>
  102. Include /etc/apache2/loadmodule.conf
  103. </IfDefine>
  104. # IP addresses / ports to listen on
  105. Include /etc/apache2/listen.conf
  106. # predefined logging formats
  107. Include /etc/apache2/mod_log_config.conf
  108. # generated from default values of global settings in /etc/sysconfig/apache2
  109. <IfDefine !SYSCONFIG>
  110. Include /etc/apache2/global.conf
  111. </IfDefine>
  112. # optional mod_status, mod_info
  113. Include /etc/apache2/mod_status.conf
  114. Include /etc/apache2/mod_info.conf
  115. # mod_reqtimeout protects the server from the so-called "slowloris"
  116. # attack: The server is not swamped with requests in fast succession,
  117. # but with slowly transmitted request headers and body, thereby filling up
  118. # the request slots until the server runs out of them.
  119. # mod_reqtimeout is lightweight and should deliver good results
  120. # with the configured default values. You shouldn't notice it at all.
  121. Include /etc/apache2/mod_reqtimeout.conf
  122. # Fix for CVE-2014-0231 introduces new configuration parameter
  123. # CGIDScriptTimeout. This directive and its effect prevent request
  124. # workers to be eaten until starvation if cgi programs do not send
  125. # output back to the server within the timout set by CGIDScriptTimeout.
  126. Include /etc/apache2/mod_cgid-timeout.conf
  127. # optional cookie-based user tracking
  128. # read the documentation before using it!!
  129. Include /etc/apache2/mod_usertrack.conf
  130. # configuration of server-generated directory listings
  131. Include /etc/apache2/mod_autoindex-defaults.conf
  132. # associate MIME types with filename extensions
  133. TypesConfig /etc/apache2/mime.types
  134. Include /etc/apache2/mod_mime-defaults.conf
  135. # set up (customizable) error responses
  136. Include /etc/apache2/errors.conf
  137. # global (server-wide) SSL configuration, that is not specific to
  138. # any virtual host
  139. Include /etc/apache2/ssl-global.conf
  140. {% if salt['pillar.get']('apache:mod_ssl:manage_tls_defaults', False) -%}
  141. Include /etc/apache24/conf.d/tls-defaults.conf
  142. {%- endif %}
  143. # forbid access to the entire filesystem by default
  144. <Directory />
  145. Options None
  146. AllowOverride None
  147. <IfModule !mod_access_compat.c>
  148. Require all denied
  149. </IfModule>
  150. <IfModule mod_access_compat.c>
  151. Order deny,allow
  152. Deny from all
  153. </IfModule>
  154. </Directory>
  155. # use .htaccess files for overriding,
  156. AccessFileName .htaccess
  157. # and never show them
  158. <Files ~ "^\.ht">
  159. <IfModule !mod_access_compat.c>
  160. Require all denied
  161. </IfModule>
  162. <IfModule mod_access_compat.c>
  163. Order allow,deny
  164. Deny from all
  165. </IfModule>
  166. </Files>
  167. # List of resources to look for when the client requests a directory
  168. DirectoryIndex index.html index.html.var
  169. ### 'Main' server configuration #############################################
  170. #
  171. # The directives in this section set up the values used by the 'main'
  172. # server, which responds to any requests that aren't handled by a
  173. # <VirtualHost> definition. These values also provide defaults for
  174. # any <VirtualHost> containers you may define later in the file.
  175. #
  176. # All of these directives may appear inside <VirtualHost> containers,
  177. # in which case these default settings will be overridden for the
  178. # virtual host being defined.
  179. #
  180. Include /etc/apache2/default-server.conf
  181. ### Virtual server configuration ############################################
  182. #
  183. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  184. # machine you can setup VirtualHost containers for them. Most configurations
  185. # use only name-based virtual hosts so the server doesn't need to worry about
  186. # IP addresses. This is indicated by the asterisks in the directives below.
  187. #
  188. # Please see the documentation at
  189. # <URL:http://httpd.apache.org/docs/2.4/vhosts/>
  190. # for further details before you try to setup virtual hosts.
  191. #
  192. # You may use the command line option '-S' to verify your virtual host
  193. # configuration.
  194. #
  195. IncludeOptional /etc/apache2/vhosts.d/*.conf
  196. # Note: instead of adding your own configuration here, consider
  197. # adding it in your own file (/etc/apache2/httpd.conf.local)
  198. # putting its name into APACHE_CONF_INCLUDE_FILES in
  199. # /etc/sysconfig/apache2 -- this will make system updates
  200. # easier :)