Saltstack Official Apache Formula
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

612 lines
22KB

  1. #
  2. # This file is managed by Salt! Do not edit by hand!
  3. #
  4. # This is the main Apache HTTP 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.
  7. # In particular, see
  8. # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
  9. # for a discussion of each configuration directive.
  10. #
  11. # Do NOT simply read the instructions in here without understanding
  12. # what they do. They're here only as hints or reminders. If you are unsure
  13. # consult the online docs. You have been warned.
  14. #
  15. # Configuration and logfile names: If the filenames you specify for many
  16. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  17. # server will use that explicit path. If the filenames do *not* begin
  18. # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
  19. # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
  20. # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
  21. # will be interpreted as '/logs/access_log'.
  22. #
  23. # ServerRoot: The top of the directory tree under which the server's
  24. # configuration, error, and log files are kept.
  25. #
  26. # Do not add a slash at the end of the directory path. If you point
  27. # ServerRoot at a non-local disk, be sure to specify a local disk on the
  28. # Mutex directive, if file-based mutexes are used. If you wish to share the
  29. # same ServerRoot for multiple httpd daemons, you will need to change at
  30. # least PidFile.
  31. #
  32. ServerRoot "{{ apache.get('serverroot', '/etc/httpd') }}"
  33. #
  34. # Mutex: Allows you to set the mutex mechanism and mutex file directory
  35. # for individual mutexes, or change the global defaults
  36. #
  37. # Uncomment and change the directory if mutexes are file-based and the default
  38. # mutex file directory is not on a local disk or is not appropriate for some
  39. # other reason.
  40. #
  41. # Mutex default:/run/httpd
  42. #
  43. # Listen: Allows you to bind Apache to specific IP addresses and/or
  44. # ports, instead of the default. See also the <VirtualHost>
  45. # directive.
  46. #
  47. # Change this to Listen on specific IP addresses as shown below to
  48. # prevent Apache from glomming onto all bound IP addresses.
  49. #
  50. #Listen 12.34.56.78:80
  51. {% if salt['pillar.get']('apache:sites') is mapping %}
  52. {%- set listen_directives = [] %}
  53. {%- for id, site in salt['pillar.get']('apache:sites').items() %}
  54. {%- set interfaces = site.get('interface', '*').split() %}
  55. {%- set port = site.get('port', 80) %}
  56. {%- for interface in interfaces %}
  57. {%- if not site.get('exclude_listen_directive', False) and not port == '*' %}
  58. {%- set listen_directive = interface ~ ':' ~ port %}
  59. {%- if listen_directive not in listen_directives %}
  60. {%- do listen_directives.append(listen_directive) %}
  61. {%- endif %}
  62. {%- endif %}
  63. {%- endfor %}
  64. {%- endfor %}
  65. {%- for listen in listen_directives %}
  66. Listen {{ listen }}
  67. {%- endfor %}
  68. {%- else %}
  69. Listen 80
  70. <IfModule mod_ssl.c>
  71. Listen 443
  72. </IfModule>
  73. {%- endif %}
  74. #
  75. # Dynamic Shared Object (DSO) Support
  76. #
  77. # To be able to use the functionality of a module which was built as a DSO you
  78. # have to place corresponding `LoadModule' lines at this location so the
  79. # directives contained in it are actually available _before_ they are used.
  80. # Statically compiled modules (those listed by `httpd -l') do not need
  81. # to be loaded here.
  82. #
  83. # Example:
  84. # LoadModule foo_module modules/mod_foo.so
  85. #
  86. LoadModule mpm_event_module modules/mod_mpm_event.so
  87. #LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
  88. #LoadModule mpm_worker_module modules/mod_mpm_worker.so
  89. LoadModule authn_file_module modules/mod_authn_file.so
  90. #LoadModule authn_dbm_module modules/mod_authn_dbm.so
  91. #LoadModule authn_anon_module modules/mod_authn_anon.so
  92. #LoadModule authn_dbd_module modules/mod_authn_dbd.so
  93. #LoadModule authn_socache_module modules/mod_authn_socache.so
  94. LoadModule authn_core_module modules/mod_authn_core.so
  95. LoadModule authz_host_module modules/mod_authz_host.so
  96. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  97. LoadModule authz_user_module modules/mod_authz_user.so
  98. #LoadModule authz_dbm_module modules/mod_authz_dbm.so
  99. #LoadModule authz_owner_module modules/mod_authz_owner.so
  100. #LoadModule authz_dbd_module modules/mod_authz_dbd.so
  101. LoadModule authz_core_module modules/mod_authz_core.so
  102. #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
  103. #LoadModule authnz_fcgi_module modules/mod_authnz_fcgi.so
  104. LoadModule access_compat_module modules/mod_access_compat.so
  105. LoadModule auth_basic_module modules/mod_auth_basic.so
  106. #LoadModule auth_form_module modules/mod_auth_form.so
  107. #LoadModule auth_digest_module modules/mod_auth_digest.so
  108. #LoadModule allowmethods_module modules/mod_allowmethods.so
  109. #LoadModule file_cache_module modules/mod_file_cache.so
  110. #LoadModule cache_module modules/mod_cache.so
  111. #LoadModule cache_disk_module modules/mod_cache_disk.so
  112. #LoadModule cache_socache_module modules/mod_cache_socache.so
  113. #LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
  114. #LoadModule socache_dbm_module modules/mod_socache_dbm.so
  115. #LoadModule socache_memcache_module modules/mod_socache_memcache.so
  116. #LoadModule socache_redis_module modules/mod_socache_redis.so
  117. #LoadModule watchdog_module modules/mod_watchdog.so
  118. #LoadModule macro_module modules/mod_macro.so
  119. #LoadModule dbd_module modules/mod_dbd.so
  120. #LoadModule dumpio_module modules/mod_dumpio.so
  121. #LoadModule echo_module modules/mod_echo.so
  122. #LoadModule buffer_module modules/mod_buffer.so
  123. #LoadModule data_module modules/mod_data.so
  124. #LoadModule ratelimit_module modules/mod_ratelimit.so
  125. LoadModule reqtimeout_module modules/mod_reqtimeout.so
  126. #LoadModule ext_filter_module modules/mod_ext_filter.so
  127. #LoadModule request_module modules/mod_request.so
  128. LoadModule include_module modules/mod_include.so
  129. LoadModule filter_module modules/mod_filter.so
  130. #LoadModule reflector_module modules/mod_reflector.so
  131. #LoadModule substitute_module modules/mod_substitute.so
  132. #LoadModule sed_module modules/mod_sed.so
  133. #LoadModule charset_lite_module modules/mod_charset_lite.so
  134. #LoadModule deflate_module modules/mod_deflate.so
  135. #LoadModule xml2enc_module modules/mod_xml2enc.so
  136. #LoadModule proxy_html_module modules/mod_proxy_html.so
  137. #LoadModule brotli_module modules/mod_brotli.so
  138. LoadModule mime_module modules/mod_mime.so
  139. #LoadModule ldap_module modules/mod_ldap.so
  140. LoadModule log_config_module modules/mod_log_config.so
  141. #LoadModule log_debug_module modules/mod_log_debug.so
  142. #LoadModule log_forensic_module modules/mod_log_forensic.so
  143. #LoadModule logio_module modules/mod_logio.so
  144. #LoadModule lua_module modules/mod_lua.so
  145. LoadModule env_module modules/mod_env.so
  146. #LoadModule mime_magic_module modules/mod_mime_magic.so
  147. #LoadModule cern_meta_module modules/mod_cern_meta.so
  148. #LoadModule expires_module modules/mod_expires.so
  149. LoadModule headers_module modules/mod_headers.so
  150. #LoadModule ident_module modules/mod_ident.so
  151. #LoadModule usertrack_module modules/mod_usertrack.so
  152. #LoadModule unique_id_module modules/mod_unique_id.so
  153. LoadModule setenvif_module modules/mod_setenvif.so
  154. LoadModule version_module modules/mod_version.so
  155. #LoadModule remoteip_module modules/mod_remoteip.so
  156. #LoadModule proxy_module modules/mod_proxy.so
  157. #LoadModule proxy_connect_module modules/mod_proxy_connect.so
  158. #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  159. #LoadModule proxy_http_module modules/mod_proxy_http.so
  160. #LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
  161. #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
  162. #LoadModule proxy_uwsgi_module modules/mod_proxy_uwsgi.so
  163. #LoadModule proxy_fdpass_module modules/mod_proxy_fdpass.so
  164. #LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
  165. #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
  166. #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  167. #LoadModule proxy_express_module modules/mod_proxy_express.so
  168. #LoadModule proxy_hcheck_module modules/mod_proxy_hcheck.so
  169. #LoadModule session_module modules/mod_session.so
  170. #LoadModule session_cookie_module modules/mod_session_cookie.so
  171. #LoadModule session_crypto_module modules/mod_session_crypto.so
  172. #LoadModule session_dbd_module modules/mod_session_dbd.so
  173. LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
  174. #LoadModule slotmem_plain_module modules/mod_slotmem_plain.so
  175. #LoadModule ssl_module modules/mod_ssl.so
  176. #LoadModule dialup_module modules/mod_dialup.so
  177. #LoadModule http2_module modules/mod_http2.so
  178. #LoadModule proxy_http2_module modules/mod_proxy_http2.so
  179. #LoadModule md_module modules/mod_md.so
  180. #LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
  181. #LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
  182. #LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
  183. #LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
  184. LoadModule unixd_module modules/mod_unixd.so
  185. #LoadModule heartbeat_module modules/mod_heartbeat.so
  186. #LoadModule heartmonitor_module modules/mod_heartmonitor.so
  187. #LoadModule dav_module modules/mod_dav.so
  188. LoadModule status_module modules/mod_status.so
  189. LoadModule autoindex_module modules/mod_autoindex.so
  190. #LoadModule asis_module modules/mod_asis.so
  191. #LoadModule info_module modules/mod_info.so
  192. #LoadModule suexec_module modules/mod_suexec.so
  193. <IfModule !mpm_prefork_module>
  194. #LoadModule cgid_module modules/mod_cgid.so
  195. </IfModule>
  196. <IfModule mpm_prefork_module>
  197. #LoadModule cgi_module modules/mod_cgi.so
  198. </IfModule>
  199. #LoadModule dav_fs_module modules/mod_dav_fs.so
  200. #LoadModule dav_lock_module modules/mod_dav_lock.so
  201. #LoadModule vhost_alias_module modules/mod_vhost_alias.so
  202. LoadModule negotiation_module modules/mod_negotiation.so
  203. LoadModule dir_module modules/mod_dir.so
  204. #LoadModule imagemap_module modules/mod_imagemap.so
  205. #LoadModule actions_module modules/mod_actions.so
  206. #LoadModule speling_module modules/mod_speling.so
  207. LoadModule userdir_module modules/mod_userdir.so
  208. LoadModule alias_module modules/mod_alias.so
  209. #LoadModule rewrite_module modules/mod_rewrite.so
  210. <IfModule unixd_module>
  211. #
  212. # If you wish httpd to run as a different user or group, you must run
  213. # httpd as root initially and it will switch.
  214. #
  215. # User/Group: The name (or #number) of the user/group to run httpd as.
  216. # It is usually good practice to create a dedicated user and group for
  217. # running httpd, as with most system services.
  218. #
  219. User {{ apache.user or 'http' }}
  220. Group {{ apache.group or 'http' }}
  221. </IfModule>
  222. # 'Main' server configuration
  223. #
  224. # The directives in this section set up the values used by the 'main'
  225. # server, which responds to any requests that aren't handled by a
  226. # <VirtualHost> definition. These values also provide defaults for
  227. # any <VirtualHost> containers you may define later in the file.
  228. #
  229. # All of these directives may appear inside <VirtualHost> containers,
  230. # in which case these default settings will be overridden for the
  231. # virtual host being defined.
  232. #
  233. #
  234. # ServerAdmin: Your address, where problems with the server should be
  235. # e-mailed. This address appears on some server-generated pages, such
  236. # as error documents. e.g. admin@your-domain.com
  237. #
  238. ServerAdmin you@example.com
  239. #
  240. # ServerName gives the name and port that the server uses to identify itself.
  241. # This can often be determined automatically, but we recommend you specify
  242. # it explicitly to prevent problems during startup.
  243. #
  244. # If your host doesn't have a registered DNS name, enter its IP address here.
  245. #
  246. #ServerName www.example.com:80
  247. #
  248. # Deny access to the entirety of your server's filesystem. You must
  249. # explicitly permit access to web content directories in other
  250. # <Directory> blocks below.
  251. #
  252. <Directory />
  253. AllowOverride none
  254. Require all denied
  255. </Directory>
  256. #
  257. # Note that from this point forward you must specifically allow
  258. # particular features to be enabled - so if something's not working as
  259. # you might expect, make sure that you have specifically enabled it
  260. # below.
  261. #
  262. #
  263. # DocumentRoot: The directory out of which you will serve your
  264. # documents. By default, all requests are taken from this directory, but
  265. # symbolic links and aliases may be used to point to other locations.
  266. #
  267. DocumentRoot "{{ apache.get('docroot', apache.wwwdir or '/srv/http') }}"
  268. #
  269. # Relax access to content within {{ apache.wwwdir }}.
  270. #
  271. <Directory "{{ apache.wwwdir }}">
  272. AllowOverride None
  273. # Allow open access:
  274. Require all granted
  275. </Directory>
  276. # Further relax access to the default document root:
  277. <Directory "{{ apache.get('docroot', apache.wwwdir + '/srv/http') }}">
  278. #
  279. # Possible values for the Options directive are "None", "All",
  280. # or any combination of:
  281. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  282. #
  283. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  284. # doesn't give it to you.
  285. #
  286. # The Options directive is both complicated and important. Please see
  287. # http://httpd.apache.org/docs/2.4/mod/core.html#options
  288. # for more information.
  289. #
  290. Options Indexes FollowSymLinks
  291. #
  292. # AllowOverride controls what directives may be placed in .htaccess files.
  293. # It can be "All", "None", or any combination of the keywords:
  294. # AllowOverride FileInfo AuthConfig Limit
  295. #
  296. AllowOverride None
  297. #
  298. # Controls who can get stuff from this server.
  299. #
  300. Require all granted
  301. </Directory>
  302. #
  303. # DirectoryIndex: sets the file that Apache will serve if a directory
  304. # is requested.
  305. #
  306. <IfModule dir_module>
  307. DirectoryIndex index.html
  308. </IfModule>
  309. #
  310. # The following lines prevent .htaccess and .htpasswd files from being
  311. # viewed by Web clients.
  312. #
  313. <Files ".ht*">
  314. Require all denied
  315. </Files>
  316. #
  317. # ErrorLog: The location of the error log file.
  318. # If you do not specify an ErrorLog directive within a <VirtualHost>
  319. # container, error messages relating to that virtual host will be
  320. # logged here. If you *do* define an error logfile for a <VirtualHost>
  321. # container, that host's errors will be logged there and not here.
  322. #
  323. ErrorLog "{{ apache.logdir }}/error_log"
  324. #
  325. # LogLevel: Control the number of messages logged to the error_log.
  326. # Possible values include: debug, info, notice, warn, error, crit,
  327. # alert, emerg.
  328. #
  329. LogLevel warn
  330. <IfModule log_config_module>
  331. #
  332. # The following directives define some format nicknames for use with
  333. # a CustomLog directive (see below).
  334. #
  335. {%- for log_format in salt['pillar.get']('apache:log_formats', []) %}
  336. LogFormat {{ log_format }}
  337. {%- endfor %}
  338. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  339. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  340. <IfModule logio_module>
  341. # You need to enable mod_logio.c to use %I and %O
  342. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  343. </IfModule>
  344. #
  345. # The location and format of the access logfile (Common Logfile Format).
  346. # If you do not define any access logfiles within a <VirtualHost>
  347. # container, they will be logged here. Contrariwise, if you *do*
  348. # define per-<VirtualHost> access logfiles, transactions will be
  349. # logged therein and *not* in this file.
  350. #
  351. #CustomLog "/var/log/httpd/access_log" common
  352. #
  353. # If you prefer a logfile with access, agent, and referer information
  354. # (Combined Logfile Format) you can use the following directive.
  355. #
  356. #CustomLog "/var/log/httpd/access_log" combined
  357. CustomLog "{{ apache.logdir }}/access_log" combined
  358. </IfModule>
  359. <IfModule alias_module>
  360. #
  361. # Redirect: Allows you to tell clients about documents that used to
  362. # exist in your server's namespace, but do not anymore. The client
  363. # will make a new request for the document at its new location.
  364. # Example:
  365. # Redirect permanent /foo http://www.example.com/bar
  366. #
  367. # Alias: Maps web paths into filesystem paths and is used to
  368. # access content that does not live under the DocumentRoot.
  369. # Example:
  370. # Alias /webpath /full/filesystem/path
  371. #
  372. # If you include a trailing / on /webpath then the server will
  373. # require it to be present in the URL. You will also likely
  374. # need to provide a <Directory> section to allow access to
  375. # the filesystem path.
  376. #
  377. # ScriptAlias: This controls which directories contain server scripts.
  378. # ScriptAliases are essentially the same as Aliases, except that
  379. # documents in the target directory are treated as applications and
  380. # run by the server when requested rather than as documents sent to the
  381. # client. The same rules about trailing "/" apply to ScriptAlias
  382. # directives as to Alias.
  383. #
  384. ScriptAlias /cgi-bin/ "{{ apache.wwwdir }}/cgi-bin/"
  385. </IfModule>
  386. <IfModule cgid_module>
  387. #
  388. # ScriptSock: On threaded servers, designate the path to the UNIX
  389. # socket used to communicate with the CGI daemon of mod_cgid.
  390. #
  391. #Scriptsock cgisock
  392. </IfModule>
  393. #
  394. # "/srv/http/cgi-bin" should be changed to whatever your ScriptAliased
  395. # CGI directory exists, if you have that configured.
  396. #
  397. <Directory "{{ apache.wwwdir }}/cgi-bin/">
  398. AllowOverride None
  399. Options None
  400. Require all granted
  401. </Directory>
  402. <IfModule headers_module>
  403. #
  404. # Avoid passing HTTP_PROXY environment to CGI's on this or any proxied
  405. # backend servers which have lingering "httpoxy" defects.
  406. # 'Proxy' request header is undefined by the IETF, not listed by IANA
  407. #
  408. RequestHeader unset Proxy early
  409. </IfModule>
  410. <IfModule mime_module>
  411. #
  412. # TypesConfig points to the file containing the list of mappings from
  413. # filename extension to MIME-type.
  414. #
  415. TypesConfig conf/mime.types
  416. #
  417. # AddType allows you to add to or override the MIME configuration
  418. # file specified in TypesConfig for specific file types.
  419. #
  420. #AddType application/x-gzip .tgz
  421. #
  422. # AddEncoding allows you to have certain browsers uncompress
  423. # information on the fly. Note: Not all browsers support this.
  424. #
  425. #AddEncoding x-compress .Z
  426. #AddEncoding x-gzip .gz .tgz
  427. #
  428. # If the AddEncoding directives above are commented-out, then you
  429. # probably should define those extensions to indicate media types:
  430. #
  431. AddType application/x-compress .Z
  432. AddType application/x-gzip .gz .tgz
  433. #
  434. # AddHandler allows you to map certain file extensions to "handlers":
  435. # actions unrelated to filetype. These can be either built into the server
  436. # or added with the Action directive (see below)
  437. #
  438. # To use CGI scripts outside of ScriptAliased directories:
  439. # (You will also need to add "ExecCGI" to the "Options" directive.)
  440. #
  441. #AddHandler cgi-script .cgi
  442. # For type maps (negotiated resources):
  443. #AddHandler type-map var
  444. #
  445. # Filters allow you to process content before it is sent to the client.
  446. #
  447. # To parse .shtml files for server-side includes (SSI):
  448. # (You will also need to add "Includes" to the "Options" directive.)
  449. #
  450. #AddType text/html .shtml
  451. #AddOutputFilter INCLUDES .shtml
  452. </IfModule>
  453. #
  454. # Specify a default charset for all content served; this enables
  455. # interpretation of all content as UTF-8 by default. To use the
  456. # default browser choice (ISO-8859-1), or to allow the META tags
  457. # in HTML content to override this choice, comment out this
  458. # directive:
  459. #
  460. {%- if apache.get('default_charset', False) is none %}
  461. # AddDefaultCharset UTF-8
  462. {%- else %}
  463. AddDefaultCharset {{ apache.get('default_charset', 'UTF-8') }}
  464. {%- endif %}
  465. #
  466. # The mod_mime_magic module allows the server to use various hints from the
  467. # contents of the file itself to determine its type. The MIMEMagicFile
  468. # directive tells the module where the hint definitions are located.
  469. #
  470. #MIMEMagicFile conf/magic
  471. #
  472. # Customizable error responses come in three flavors:
  473. # 1) plain text 2) local redirects 3) external redirects
  474. #
  475. # Some examples:
  476. #ErrorDocument 500 "The server made a boo boo."
  477. #ErrorDocument 404 /missing.html
  478. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  479. #ErrorDocument 402 http://www.example.com/subscription_info.html
  480. #
  481. #
  482. # MaxRanges: Maximum number of Ranges in a request before
  483. # returning the entire resource, or one of the special
  484. # values 'default', 'none' or 'unlimited'.
  485. # Default setting is to accept 200 Ranges.
  486. #MaxRanges unlimited
  487. #
  488. # EnableMMAP and EnableSendfile: On systems that support it,
  489. # memory-mapping or the sendfile syscall may be used to deliver
  490. # files. This usually improves server performance, but must
  491. # be turned off when serving from networked-mounted
  492. # filesystems or if support for these functions is otherwise
  493. # broken on your system.
  494. # Defaults: EnableMMAP On, EnableSendfile Off
  495. #
  496. #EnableMMAP off
  497. #EnableSendfile on
  498. {%- for directive, dvalue in salt['pillar.get']('apache:global', {}).items() %}
  499. {{ directive }} {{ dvalue }}
  500. {%- endfor %}
  501. # Supplemental configuration
  502. #
  503. # The configuration files in the conf/extra/ directory can be
  504. # included to add extra features or to modify the default configuration of
  505. # the server, or you may simply copy their contents here and change as
  506. # necessary.
  507. # Load config files in the "/etc/httpd/conf.d" directory, if any.
  508. IncludeOptional {{ apache.confdir }}/*.conf
  509. {% if apache.vhostdir != apache.confdir %}
  510. IncludeOptional {{ apache.vhostdir }}/*.conf
  511. {% endif %}
  512. # Server-pool management (MPM specific)
  513. Include conf/extra/httpd-mpm.conf
  514. # Multi-language error messages
  515. Include conf/extra/httpd-multilang-errordoc.conf
  516. # Fancy directory listings
  517. Include conf/extra/httpd-autoindex.conf
  518. # Language settings
  519. Include conf/extra/httpd-languages.conf
  520. # User home directories
  521. Include conf/extra/httpd-userdir.conf
  522. # Real-time info on requests and configuration
  523. #Include conf/extra/httpd-info.conf
  524. # Virtual hosts
  525. #Include conf/extra/httpd-vhosts.conf
  526. # Local access to the Apache HTTP Server Manual
  527. #Include conf/extra/httpd-manual.conf
  528. # Distributed authoring and versioning (WebDAV)
  529. <IfModule mod_dav.c>
  530. Include conf/extra/httpd-dav.conf
  531. </IfModule>
  532. # Various default settings
  533. Include conf/extra/httpd-default.conf
  534. # Configure mod_proxy_html to understand HTML4/XHTML1
  535. <IfModule proxy_html_module>
  536. Include conf/extra/proxy-html.conf
  537. </IfModule>
  538. # Secure (SSL/TLS) connections
  539. #Include conf/extra/httpd-ssl.conf
  540. #
  541. # Note: The following must must be present to support
  542. # starting without SSL on platforms with no /dev/random equivalent
  543. # but a statically compiled-in mod_ssl.
  544. #
  545. <IfModule ssl_module>
  546. SSLRandomSeed startup builtin
  547. SSLRandomSeed connect builtin
  548. </IfModule>