···11+#
22+# This is the main Apache HTTP server configuration file. It contains the
33+# configuration directives that give the server its instructions.
44+# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
55+# In particular, see
66+# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
77+# for a discussion of each configuration directive.
88+#
99+# Do NOT simply read the instructions in here without understanding
1010+# what they do. They're here only as hints or reminders. If you are unsure
1111+# consult the online docs. You have been warned.
1212+#
1313+# Configuration and logfile names: If the filenames you specify for many
1414+# of the server's control files begin with "/" (or "drive:/" for Win32), the
1515+# server will use that explicit path. If the filenames do *not* begin
1616+# with "/", the value of ServerRoot is prepended -- so "logs/access_log"
1717+# with ServerRoot set to "/usr/local/apache2" will be interpreted by the
1818+# server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
1919+# will be interpreted as '/logs/access_log'.
2020+2121+#
2222+# ServerRoot: The top of the directory tree under which the server's
2323+# configuration, error, and log files are kept.
2424+#
2525+# Do not add a slash at the end of the directory path. If you point
2626+# ServerRoot at a non-local disk, be sure to specify a local disk on the
2727+# Mutex directive, if file-based mutexes are used. If you wish to share the
2828+# same ServerRoot for multiple httpd daemons, you will need to change at
2929+# least PidFile.
3030+#
3131+ServerRoot "/usr/local/apache2"
3232+3333+#
3434+# Mutex: Allows you to set the mutex mechanism and mutex file directory
3535+# for individual mutexes, or change the global defaults
3636+#
3737+# Uncomment and change the directory if mutexes are file-based and the default
3838+# mutex file directory is not on a local disk or is not appropriate for some
3939+# other reason.
4040+#
4141+# Mutex default:logs
4242+4343+#
4444+# Listen: Allows you to bind Apache to specific IP addresses and/or
4545+# ports, instead of the default. See also the <VirtualHost>
4646+# directive.
4747+#
4848+# Change this to Listen on specific IP addresses as shown below to
4949+# prevent Apache from glomming onto all bound IP addresses.
5050+#
5151+#Listen 12.34.56.78:80
5252+Listen 80
5353+5454+#
5555+# Dynamic Shared Object (DSO) Support
5656+#
5757+# To be able to use the functionality of a module which was built as a DSO you
5858+# have to place corresponding `LoadModule' lines at this location so the
5959+# directives contained in it are actually available _before_ they are used.
6060+# Statically compiled modules (those listed by `httpd -l') do not need
6161+# to be loaded here.
6262+#
6363+# Example:
6464+# LoadModule foo_module modules/mod_foo.so
6565+#
6666+LoadModule mpm_event_module modules/mod_mpm_event.so
6767+#LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
6868+#LoadModule mpm_worker_module modules/mod_mpm_worker.so
6969+LoadModule authn_file_module modules/mod_authn_file.so
7070+#LoadModule authn_dbm_module modules/mod_authn_dbm.so
7171+#LoadModule authn_anon_module modules/mod_authn_anon.so
7272+#LoadModule authn_dbd_module modules/mod_authn_dbd.so
7373+#LoadModule authn_socache_module modules/mod_authn_socache.so
7474+LoadModule authn_core_module modules/mod_authn_core.so
7575+LoadModule authz_host_module modules/mod_authz_host.so
7676+LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
7777+LoadModule authz_user_module modules/mod_authz_user.so
7878+#LoadModule authz_dbm_module modules/mod_authz_dbm.so
7979+#LoadModule authz_owner_module modules/mod_authz_owner.so
8080+#LoadModule authz_dbd_module modules/mod_authz_dbd.so
8181+LoadModule authz_core_module modules/mod_authz_core.so
8282+#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
8383+#LoadModule authnz_fcgi_module modules/mod_authnz_fcgi.so
8484+LoadModule access_compat_module modules/mod_access_compat.so
8585+LoadModule auth_basic_module modules/mod_auth_basic.so
8686+#LoadModule auth_form_module modules/mod_auth_form.so
8787+#LoadModule auth_digest_module modules/mod_auth_digest.so
8888+#LoadModule allowmethods_module modules/mod_allowmethods.so
8989+#LoadModule isapi_module modules/mod_isapi.so
9090+#LoadModule file_cache_module modules/mod_file_cache.so
9191+#LoadModule cache_module modules/mod_cache.so
9292+#LoadModule cache_disk_module modules/mod_cache_disk.so
9393+#LoadModule cache_socache_module modules/mod_cache_socache.so
9494+#LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
9595+#LoadModule socache_dbm_module modules/mod_socache_dbm.so
9696+#LoadModule socache_memcache_module modules/mod_socache_memcache.so
9797+#LoadModule socache_redis_module modules/mod_socache_redis.so
9898+#LoadModule watchdog_module modules/mod_watchdog.so
9999+#LoadModule macro_module modules/mod_macro.so
100100+#LoadModule dbd_module modules/mod_dbd.so
101101+#LoadModule bucketeer_module modules/mod_bucketeer.so
102102+#LoadModule dumpio_module modules/mod_dumpio.so
103103+#LoadModule echo_module modules/mod_echo.so
104104+#LoadModule example_hooks_module modules/mod_example_hooks.so
105105+#LoadModule case_filter_module modules/mod_case_filter.so
106106+#LoadModule case_filter_in_module modules/mod_case_filter_in.so
107107+#LoadModule example_ipc_module modules/mod_example_ipc.so
108108+#LoadModule buffer_module modules/mod_buffer.so
109109+#LoadModule data_module modules/mod_data.so
110110+#LoadModule ratelimit_module modules/mod_ratelimit.so
111111+LoadModule reqtimeout_module modules/mod_reqtimeout.so
112112+#LoadModule ext_filter_module modules/mod_ext_filter.so
113113+#LoadModule request_module modules/mod_request.so
114114+#LoadModule include_module modules/mod_include.so
115115+LoadModule filter_module modules/mod_filter.so
116116+#LoadModule reflector_module modules/mod_reflector.so
117117+#LoadModule substitute_module modules/mod_substitute.so
118118+#LoadModule sed_module modules/mod_sed.so
119119+#LoadModule charset_lite_module modules/mod_charset_lite.so
120120+#LoadModule deflate_module modules/mod_deflate.so
121121+#LoadModule xml2enc_module modules/mod_xml2enc.so
122122+#LoadModule proxy_html_module modules/mod_proxy_html.so
123123+#LoadModule brotli_module modules/mod_brotli.so
124124+LoadModule mime_module modules/mod_mime.so
125125+#LoadModule ldap_module modules/mod_ldap.so
126126+LoadModule log_config_module modules/mod_log_config.so
127127+#LoadModule log_debug_module modules/mod_log_debug.so
128128+#LoadModule log_forensic_module modules/mod_log_forensic.so
129129+#LoadModule logio_module modules/mod_logio.so
130130+#LoadModule lua_module modules/mod_lua.so
131131+LoadModule env_module modules/mod_env.so
132132+#LoadModule mime_magic_module modules/mod_mime_magic.so
133133+#LoadModule cern_meta_module modules/mod_cern_meta.so
134134+#LoadModule expires_module modules/mod_expires.so
135135+LoadModule headers_module modules/mod_headers.so
136136+#LoadModule ident_module modules/mod_ident.so
137137+#LoadModule usertrack_module modules/mod_usertrack.so
138138+#LoadModule unique_id_module modules/mod_unique_id.so
139139+LoadModule setenvif_module modules/mod_setenvif.so
140140+LoadModule version_module modules/mod_version.so
141141+#LoadModule remoteip_module modules/mod_remoteip.so
142142+#LoadModule proxy_module modules/mod_proxy.so
143143+#LoadModule proxy_connect_module modules/mod_proxy_connect.so
144144+#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
145145+#LoadModule proxy_http_module modules/mod_proxy_http.so
146146+#LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
147147+#LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
148148+#LoadModule proxy_uwsgi_module modules/mod_proxy_uwsgi.so
149149+#LoadModule proxy_fdpass_module modules/mod_proxy_fdpass.so
150150+#LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
151151+#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
152152+#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
153153+#LoadModule proxy_express_module modules/mod_proxy_express.so
154154+#LoadModule proxy_hcheck_module modules/mod_proxy_hcheck.so
155155+#LoadModule session_module modules/mod_session.so
156156+#LoadModule session_cookie_module modules/mod_session_cookie.so
157157+#LoadModule session_crypto_module modules/mod_session_crypto.so
158158+#LoadModule session_dbd_module modules/mod_session_dbd.so
159159+#LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
160160+#LoadModule slotmem_plain_module modules/mod_slotmem_plain.so
161161+#LoadModule ssl_module modules/mod_ssl.so
162162+#LoadModule optional_hook_export_module modules/mod_optional_hook_export.so
163163+#LoadModule optional_hook_import_module modules/mod_optional_hook_import.so
164164+#LoadModule optional_fn_import_module modules/mod_optional_fn_import.so
165165+#LoadModule optional_fn_export_module modules/mod_optional_fn_export.so
166166+#LoadModule dialup_module modules/mod_dialup.so
167167+#LoadModule http2_module modules/mod_http2.so
168168+#LoadModule proxy_http2_module modules/mod_proxy_http2.so
169169+#LoadModule md_module modules/mod_md.so
170170+#LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
171171+#LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
172172+#LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
173173+#LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
174174+LoadModule unixd_module modules/mod_unixd.so
175175+#LoadModule heartbeat_module modules/mod_heartbeat.so
176176+#LoadModule heartmonitor_module modules/mod_heartmonitor.so
177177+#LoadModule dav_module modules/mod_dav.so
178178+LoadModule status_module modules/mod_status.so
179179+LoadModule autoindex_module modules/mod_autoindex.so
180180+#LoadModule asis_module modules/mod_asis.so
181181+#LoadModule info_module modules/mod_info.so
182182+#LoadModule suexec_module modules/mod_suexec.so
183183+<IfModule !mpm_prefork_module>
184184+ #LoadModule cgid_module modules/mod_cgid.so
185185+</IfModule>
186186+<IfModule mpm_prefork_module>
187187+ #LoadModule cgi_module modules/mod_cgi.so
188188+</IfModule>
189189+#LoadModule dav_fs_module modules/mod_dav_fs.so
190190+#LoadModule dav_lock_module modules/mod_dav_lock.so
191191+#LoadModule vhost_alias_module modules/mod_vhost_alias.so
192192+#LoadModule negotiation_module modules/mod_negotiation.so
193193+LoadModule dir_module modules/mod_dir.so
194194+#LoadModule imagemap_module modules/mod_imagemap.so
195195+#LoadModule actions_module modules/mod_actions.so
196196+#LoadModule speling_module modules/mod_speling.so
197197+#LoadModule userdir_module modules/mod_userdir.so
198198+LoadModule alias_module modules/mod_alias.so
199199+#LoadModule rewrite_module modules/mod_rewrite.so
200200+201201+<IfModule unixd_module>
202202+#
203203+# If you wish httpd to run as a different user or group, you must run
204204+# httpd as root initially and it will switch.
205205+#
206206+# User/Group: The name (or #number) of the user/group to run httpd as.
207207+# It is usually good practice to create a dedicated user and group for
208208+# running httpd, as with most system services.
209209+#
210210+User www-data
211211+Group www-data
212212+213213+</IfModule>
214214+215215+# 'Main' server configuration
216216+#
217217+# The directives in this section set up the values used by the 'main'
218218+# server, which responds to any requests that aren't handled by a
219219+# <VirtualHost> definition. These values also provide defaults for
220220+# any <VirtualHost> containers you may define later in the file.
221221+#
222222+# All of these directives may appear inside <VirtualHost> containers,
223223+# in which case these default settings will be overridden for the
224224+# virtual host being defined.
225225+#
226226+227227+#
228228+# ServerAdmin: Your address, where problems with the server should be
229229+# e-mailed. This address appears on some server-generated pages, such
230230+# as error documents. e.g. admin@your-domain.com
231231+#
232232+ServerAdmin you@example.com
233233+234234+#
235235+# ServerName gives the name and port that the server uses to identify itself.
236236+# This can often be determined automatically, but we recommend you specify
237237+# it explicitly to prevent problems during startup.
238238+#
239239+# If your host doesn't have a registered DNS name, enter its IP address here.
240240+#
241241+#ServerName www.example.com:80
242242+243243+#
244244+# Deny access to the entirety of your server's filesystem. You must
245245+# explicitly permit access to web content directories in other
246246+# <Directory> blocks below.
247247+#
248248+<Directory />
249249+ AllowOverride none
250250+ Require all denied
251251+</Directory>
252252+253253+#
254254+# Note that from this point forward you must specifically allow
255255+# particular features to be enabled - so if something's not working as
256256+# you might expect, make sure that you have specifically enabled it
257257+# below.
258258+#
259259+260260+#
261261+# DocumentRoot: The directory out of which you will serve your
262262+# documents. By default, all requests are taken from this directory, but
263263+# symbolic links and aliases may be used to point to other locations.
264264+#
265265+DocumentRoot "/usr/local/apache2/htdocs"
266266+ErrorDocument 404 /404.html
267267+<Directory "/usr/local/apache2/htdocs">
268268+ #
269269+ # Possible values for the Options directive are "None", "All",
270270+ # or any combination of:
271271+ # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
272272+ #
273273+ # Note that "MultiViews" must be named *explicitly* --- "Options All"
274274+ # doesn't give it to you.
275275+ #
276276+ # The Options directive is both complicated and important. Please see
277277+ # http://httpd.apache.org/docs/2.4/mod/core.html#options
278278+ # for more information.
279279+ #
280280+ Options Indexes FollowSymLinks
281281+282282+ #
283283+ # AllowOverride controls what directives may be placed in .htaccess files.
284284+ # It can be "All", "None", or any combination of the keywords:
285285+ # AllowOverride FileInfo AuthConfig Limit
286286+ #
287287+ AllowOverride None
288288+289289+ #
290290+ # Controls who can get stuff from this server.
291291+ #
292292+ Require all granted
293293+</Directory>
294294+295295+#
296296+# DirectoryIndex: sets the file that Apache will serve if a directory
297297+# is requested.
298298+#
299299+<IfModule dir_module>
300300+ DirectoryIndex index.html
301301+</IfModule>
302302+303303+#
304304+# The following lines prevent .htaccess and .htpasswd files from being
305305+# viewed by Web clients.
306306+#
307307+<Files ".ht*">
308308+ Require all denied
309309+</Files>
310310+311311+#
312312+# ErrorLog: The location of the error log file.
313313+# If you do not specify an ErrorLog directive within a <VirtualHost>
314314+# container, error messages relating to that virtual host will be
315315+# logged here. If you *do* define an error logfile for a <VirtualHost>
316316+# container, that host's errors will be logged there and not here.
317317+#
318318+ErrorLog /proc/self/fd/2
319319+320320+#
321321+# LogLevel: Control the number of messages logged to the error_log.
322322+# Possible values include: debug, info, notice, warn, error, crit,
323323+# alert, emerg.
324324+#
325325+LogLevel warn
326326+327327+<IfModule log_config_module>
328328+ #
329329+ # The following directives define some format nicknames for use with
330330+ # a CustomLog directive (see below).
331331+ #
332332+ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
333333+ LogFormat "%h %l %u %t \"%r\" %>s %b" common
334334+335335+ <IfModule logio_module>
336336+ # You need to enable mod_logio.c to use %I and %O
337337+ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
338338+ </IfModule>
339339+340340+ #
341341+ # The location and format of the access logfile (Common Logfile Format).
342342+ # If you do not define any access logfiles within a <VirtualHost>
343343+ # container, they will be logged here. Contrariwise, if you *do*
344344+ # define per-<VirtualHost> access logfiles, transactions will be
345345+ # logged therein and *not* in this file.
346346+ #
347347+ CustomLog /proc/self/fd/1 common
348348+349349+ #
350350+ # If you prefer a logfile with access, agent, and referer information
351351+ # (Combined Logfile Format) you can use the following directive.
352352+ #
353353+ #CustomLog "logs/access_log" combined
354354+</IfModule>
355355+356356+<IfModule alias_module>
357357+ #
358358+ # Redirect: Allows you to tell clients about documents that used to
359359+ # exist in your server's namespace, but do not anymore. The client
360360+ # will make a new request for the document at its new location.
361361+ # Example:
362362+ # Redirect permanent /foo http://www.example.com/bar
363363+364364+ #
365365+ # Alias: Maps web paths into filesystem paths and is used to
366366+ # access content that does not live under the DocumentRoot.
367367+ # Example:
368368+ # Alias /webpath /full/filesystem/path
369369+ #
370370+ # If you include a trailing / on /webpath then the server will
371371+ # require it to be present in the URL. You will also likely
372372+ # need to provide a <Directory> section to allow access to
373373+ # the filesystem path.
374374+375375+ #
376376+ # ScriptAlias: This controls which directories contain server scripts.
377377+ # ScriptAliases are essentially the same as Aliases, except that
378378+ # documents in the target directory are treated as applications and
379379+ # run by the server when requested rather than as documents sent to the
380380+ # client. The same rules about trailing "/" apply to ScriptAlias
381381+ # directives as to Alias.
382382+ #
383383+ ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
384384+385385+</IfModule>
386386+387387+<IfModule cgid_module>
388388+ #
389389+ # ScriptSock: On threaded servers, designate the path to the UNIX
390390+ # socket used to communicate with the CGI daemon of mod_cgid.
391391+ #
392392+ #Scriptsock cgisock
393393+</IfModule>
394394+395395+#
396396+# "/usr/local/apache2/cgi-bin" should be changed to whatever your ScriptAliased
397397+# CGI directory exists, if you have that configured.
398398+#
399399+<Directory "/usr/local/apache2/cgi-bin">
400400+ AllowOverride None
401401+ Options None
402402+ Require all granted
403403+</Directory>
404404+405405+<IfModule headers_module>
406406+ #
407407+ # Avoid passing HTTP_PROXY environment to CGI's on this or any proxied
408408+ # backend servers which have lingering "httpoxy" defects.
409409+ # 'Proxy' request header is undefined by the IETF, not listed by IANA
410410+ #
411411+ RequestHeader unset Proxy early
412412+</IfModule>
413413+414414+<IfModule mime_module>
415415+ #
416416+ # TypesConfig points to the file containing the list of mappings from
417417+ # filename extension to MIME-type.
418418+ #
419419+ TypesConfig conf/mime.types
420420+421421+ #
422422+ # AddType allows you to add to or override the MIME configuration
423423+ # file specified in TypesConfig for specific file types.
424424+ #
425425+ #AddType application/x-gzip .tgz
426426+ #
427427+ # AddEncoding allows you to have certain browsers uncompress
428428+ # information on the fly. Note: Not all browsers support this.
429429+ #
430430+ #AddEncoding x-compress .Z
431431+ #AddEncoding x-gzip .gz .tgz
432432+ #
433433+ # If the AddEncoding directives above are commented-out, then you
434434+ # probably should define those extensions to indicate media types:
435435+ #
436436+ AddType application/x-compress .Z
437437+ AddType application/x-gzip .gz .tgz
438438+439439+ #
440440+ # AddHandler allows you to map certain file extensions to "handlers":
441441+ # actions unrelated to filetype. These can be either built into the server
442442+ # or added with the Action directive (see below)
443443+ #
444444+ # To use CGI scripts outside of ScriptAliased directories:
445445+ # (You will also need to add "ExecCGI" to the "Options" directive.)
446446+ #
447447+ #AddHandler cgi-script .cgi
448448+449449+ # For type maps (negotiated resources):
450450+ #AddHandler type-map var
451451+452452+ #
453453+ # Filters allow you to process content before it is sent to the client.
454454+ #
455455+ # To parse .shtml files for server-side includes (SSI):
456456+ # (You will also need to add "Includes" to the "Options" directive.)
457457+ #
458458+ #AddType text/html .shtml
459459+ #AddOutputFilter INCLUDES .shtml
460460+</IfModule>
461461+462462+#
463463+# The mod_mime_magic module allows the server to use various hints from the
464464+# contents of the file itself to determine its type. The MIMEMagicFile
465465+# directive tells the module where the hint definitions are located.
466466+#
467467+#MIMEMagicFile conf/magic
468468+469469+#
470470+# Customizable error responses come in three flavors:
471471+# 1) plain text 2) local redirects 3) external redirects
472472+#
473473+# Some examples:
474474+#ErrorDocument 500 "The server made a boo boo."
475475+#ErrorDocument 404 /missing.html
476476+#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
477477+#ErrorDocument 402 http://www.example.com/subscription_info.html
478478+#
479479+480480+#
481481+# MaxRanges: Maximum number of Ranges in a request before
482482+# returning the entire resource, or one of the special
483483+# values 'default', 'none' or 'unlimited'.
484484+# Default setting is to accept 200 Ranges.
485485+#MaxRanges unlimited
486486+487487+#
488488+# EnableMMAP and EnableSendfile: On systems that support it,
489489+# memory-mapping or the sendfile syscall may be used to deliver
490490+# files. This usually improves server performance, but must
491491+# be turned off when serving from networked-mounted
492492+# filesystems or if support for these functions is otherwise
493493+# broken on your system.
494494+# Defaults: EnableMMAP On, EnableSendfile Off
495495+#
496496+#EnableMMAP off
497497+#EnableSendfile on
498498+499499+# Supplemental configuration
500500+#
501501+# The configuration files in the conf/extra/ directory can be
502502+# included to add extra features or to modify the default configuration of
503503+# the server, or you may simply copy their contents here and change as
504504+# necessary.
505505+506506+# Server-pool management (MPM specific)
507507+#Include conf/extra/httpd-mpm.conf
508508+509509+# Multi-language error messages
510510+#Include conf/extra/httpd-multilang-errordoc.conf
511511+512512+# Fancy directory listings
513513+#Include conf/extra/httpd-autoindex.conf
514514+515515+# Language settings
516516+#Include conf/extra/httpd-languages.conf
517517+518518+# User home directories
519519+#Include conf/extra/httpd-userdir.conf
520520+521521+# Real-time info on requests and configuration
522522+#Include conf/extra/httpd-info.conf
523523+524524+# Virtual hosts
525525+#Include conf/extra/httpd-vhosts.conf
526526+527527+# Local access to the Apache HTTP Server Manual
528528+#Include conf/extra/httpd-manual.conf
529529+530530+# Distributed authoring and versioning (WebDAV)
531531+#Include conf/extra/httpd-dav.conf
532532+533533+# Various default settings
534534+#Include conf/extra/httpd-default.conf
535535+536536+# Configure mod_proxy_html to understand HTML4/XHTML1
537537+<IfModule proxy_html_module>
538538+Include conf/extra/proxy-html.conf
539539+</IfModule>
540540+541541+# Secure (SSL/TLS) connections
542542+#Include conf/extra/httpd-ssl.conf
543543+#
544544+# Note: The following must must be present to support
545545+# starting without SSL on platforms with no /dev/random equivalent
546546+# but a statically compiled-in mod_ssl.
547547+#
548548+<IfModule ssl_module>
549549+SSLRandomSeed startup builtin
550550+SSLRandomSeed connect builtin
551551+</IfModule>
552552+