Path: blob/main/static/src/gs/public/gopher-kart/httpd.conf
1330 views
#1# This is the main Apache HTTP server configuration file. It contains the2# configuration directives that give the server its instructions.3# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.4# In particular, see5# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>6# for a discussion of each configuration directive.7#8# Do NOT simply read the instructions in here without understanding9# what they do. They're here only as hints or reminders. If you are unsure10# consult the online docs. You have been warned.11#12# Configuration and logfile names: If the filenames you specify for many13# of the server's control files begin with "/" (or "drive:/" for Win32), the14# server will use that explicit path. If the filenames do *not* begin15# with "/", the value of ServerRoot is prepended -- so "logs/access_log"16# with ServerRoot set to "/usr/local/apache2" will be interpreted by the17# server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"18# will be interpreted as '/logs/access_log'.1920#21# ServerRoot: The top of the directory tree under which the server's22# configuration, error, and log files are kept.23#24# Do not add a slash at the end of the directory path. If you point25# ServerRoot at a non-local disk, be sure to specify a local disk on the26# Mutex directive, if file-based mutexes are used. If you wish to share the27# same ServerRoot for multiple httpd daemons, you will need to change at28# least PidFile.29#30ServerRoot "/usr/local/apache2"3132#33# Mutex: Allows you to set the mutex mechanism and mutex file directory34# for individual mutexes, or change the global defaults35#36# Uncomment and change the directory if mutexes are file-based and the default37# mutex file directory is not on a local disk or is not appropriate for some38# other reason.39#40# Mutex default:logs4142#43# Listen: Allows you to bind Apache to specific IP addresses and/or44# ports, instead of the default. See also the <VirtualHost>45# directive.46#47# Change this to Listen on specific IP addresses as shown below to48# prevent Apache from glomming onto all bound IP addresses.49#50#Listen 12.34.56.78:8051Listen 805253#54# Dynamic Shared Object (DSO) Support55#56# To be able to use the functionality of a module which was built as a DSO you57# have to place corresponding `LoadModule' lines at this location so the58# directives contained in it are actually available _before_ they are used.59# Statically compiled modules (those listed by `httpd -l') do not need60# to be loaded here.61#62# Example:63# LoadModule foo_module modules/mod_foo.so64#65LoadModule mpm_event_module modules/mod_mpm_event.so66#LoadModule mpm_prefork_module modules/mod_mpm_prefork.so67#LoadModule mpm_worker_module modules/mod_mpm_worker.so68LoadModule authn_file_module modules/mod_authn_file.so69#LoadModule authn_dbm_module modules/mod_authn_dbm.so70#LoadModule authn_anon_module modules/mod_authn_anon.so71#LoadModule authn_dbd_module modules/mod_authn_dbd.so72#LoadModule authn_socache_module modules/mod_authn_socache.so73LoadModule authn_core_module modules/mod_authn_core.so74LoadModule authz_host_module modules/mod_authz_host.so75LoadModule authz_groupfile_module modules/mod_authz_groupfile.so76LoadModule authz_user_module modules/mod_authz_user.so77#LoadModule authz_dbm_module modules/mod_authz_dbm.so78#LoadModule authz_owner_module modules/mod_authz_owner.so79#LoadModule authz_dbd_module modules/mod_authz_dbd.so80LoadModule authz_core_module modules/mod_authz_core.so81#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so82#LoadModule authnz_fcgi_module modules/mod_authnz_fcgi.so83LoadModule access_compat_module modules/mod_access_compat.so84LoadModule auth_basic_module modules/mod_auth_basic.so85#LoadModule auth_form_module modules/mod_auth_form.so86#LoadModule auth_digest_module modules/mod_auth_digest.so87#LoadModule allowmethods_module modules/mod_allowmethods.so88#LoadModule isapi_module modules/mod_isapi.so89#LoadModule file_cache_module modules/mod_file_cache.so90#LoadModule cache_module modules/mod_cache.so91#LoadModule cache_disk_module modules/mod_cache_disk.so92#LoadModule cache_socache_module modules/mod_cache_socache.so93#LoadModule socache_shmcb_module modules/mod_socache_shmcb.so94#LoadModule socache_dbm_module modules/mod_socache_dbm.so95#LoadModule socache_memcache_module modules/mod_socache_memcache.so96#LoadModule watchdog_module modules/mod_watchdog.so97#LoadModule macro_module modules/mod_macro.so98#LoadModule dbd_module modules/mod_dbd.so99#LoadModule bucketeer_module modules/mod_bucketeer.so100#LoadModule dumpio_module modules/mod_dumpio.so101#LoadModule echo_module modules/mod_echo.so102#LoadModule example_hooks_module modules/mod_example_hooks.so103#LoadModule case_filter_module modules/mod_case_filter.so104#LoadModule case_filter_in_module modules/mod_case_filter_in.so105#LoadModule example_ipc_module modules/mod_example_ipc.so106#LoadModule buffer_module modules/mod_buffer.so107#LoadModule data_module modules/mod_data.so108#LoadModule ratelimit_module modules/mod_ratelimit.so109LoadModule reqtimeout_module modules/mod_reqtimeout.so110#LoadModule ext_filter_module modules/mod_ext_filter.so111#LoadModule request_module modules/mod_request.so112#LoadModule include_module modules/mod_include.so113LoadModule filter_module modules/mod_filter.so114#LoadModule reflector_module modules/mod_reflector.so115#LoadModule substitute_module modules/mod_substitute.so116#LoadModule sed_module modules/mod_sed.so117#LoadModule charset_lite_module modules/mod_charset_lite.so118#LoadModule deflate_module modules/mod_deflate.so119#LoadModule xml2enc_module modules/mod_xml2enc.so120#LoadModule proxy_html_module modules/mod_proxy_html.so121LoadModule mime_module modules/mod_mime.so122#LoadModule ldap_module modules/mod_ldap.so123LoadModule log_config_module modules/mod_log_config.so124#LoadModule log_debug_module modules/mod_log_debug.so125#LoadModule log_forensic_module modules/mod_log_forensic.so126#LoadModule logio_module modules/mod_logio.so127#LoadModule lua_module modules/mod_lua.so128LoadModule env_module modules/mod_env.so129#LoadModule mime_magic_module modules/mod_mime_magic.so130#LoadModule cern_meta_module modules/mod_cern_meta.so131#LoadModule expires_module modules/mod_expires.so132LoadModule headers_module modules/mod_headers.so133#LoadModule ident_module modules/mod_ident.so134#LoadModule usertrack_module modules/mod_usertrack.so135#LoadModule unique_id_module modules/mod_unique_id.so136LoadModule setenvif_module modules/mod_setenvif.so137LoadModule version_module modules/mod_version.so138#LoadModule remoteip_module modules/mod_remoteip.so139#LoadModule proxy_module modules/mod_proxy.so140#LoadModule proxy_connect_module modules/mod_proxy_connect.so141#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so142#LoadModule proxy_http_module modules/mod_proxy_http.so143#LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so144#LoadModule proxy_scgi_module modules/mod_proxy_scgi.so145#LoadModule proxy_uwsgi_module modules/mod_proxy_uwsgi.so146#LoadModule proxy_fdpass_module modules/mod_proxy_fdpass.so147#LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so148#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so149#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so150#LoadModule proxy_express_module modules/mod_proxy_express.so151#LoadModule proxy_hcheck_module modules/mod_proxy_hcheck.so152#LoadModule session_module modules/mod_session.so153#LoadModule session_cookie_module modules/mod_session_cookie.so154#LoadModule session_crypto_module modules/mod_session_crypto.so155#LoadModule session_dbd_module modules/mod_session_dbd.so156#LoadModule slotmem_shm_module modules/mod_slotmem_shm.so157#LoadModule slotmem_plain_module modules/mod_slotmem_plain.so158#LoadModule ssl_module modules/mod_ssl.so159#LoadModule optional_hook_export_module modules/mod_optional_hook_export.so160#LoadModule optional_hook_import_module modules/mod_optional_hook_import.so161#LoadModule optional_fn_import_module modules/mod_optional_fn_import.so162#LoadModule optional_fn_export_module modules/mod_optional_fn_export.so163#LoadModule dialup_module modules/mod_dialup.so164#LoadModule http2_module modules/mod_http2.so165#LoadModule proxy_http2_module modules/mod_proxy_http2.so166#LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so167#LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so168#LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so169#LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so170LoadModule unixd_module modules/mod_unixd.so171#LoadModule heartbeat_module modules/mod_heartbeat.so172#LoadModule heartmonitor_module modules/mod_heartmonitor.so173#LoadModule dav_module modules/mod_dav.so174LoadModule status_module modules/mod_status.so175LoadModule autoindex_module modules/mod_autoindex.so176#LoadModule asis_module modules/mod_asis.so177#LoadModule info_module modules/mod_info.so178#LoadModule suexec_module modules/mod_suexec.so179<IfModule !mpm_prefork_module>180#LoadModule cgid_module modules/mod_cgid.so181</IfModule>182<IfModule mpm_prefork_module>183#LoadModule cgi_module modules/mod_cgi.so184</IfModule>185#LoadModule dav_fs_module modules/mod_dav_fs.so186#LoadModule dav_lock_module modules/mod_dav_lock.so187#LoadModule vhost_alias_module modules/mod_vhost_alias.so188#LoadModule negotiation_module modules/mod_negotiation.so189LoadModule dir_module modules/mod_dir.so190#LoadModule imagemap_module modules/mod_imagemap.so191#LoadModule actions_module modules/mod_actions.so192#LoadModule speling_module modules/mod_speling.so193#LoadModule userdir_module modules/mod_userdir.so194LoadModule alias_module modules/mod_alias.so195#LoadModule rewrite_module modules/mod_rewrite.so196197<IfModule unixd_module>198#199# If you wish httpd to run as a different user or group, you must run200# httpd as root initially and it will switch.201#202# User/Group: The name (or #number) of the user/group to run httpd as.203# It is usually good practice to create a dedicated user and group for204# running httpd, as with most system services.205#206User daemon207Group daemon208209</IfModule>210211# 'Main' server configuration212#213# The directives in this section set up the values used by the 'main'214# server, which responds to any requests that aren't handled by a215# <VirtualHost> definition. These values also provide defaults for216# any <VirtualHost> containers you may define later in the file.217#218# All of these directives may appear inside <VirtualHost> containers,219# in which case these default settings will be overridden for the220# virtual host being defined.221#222223#224# ServerAdmin: Your address, where problems with the server should be225# e-mailed. This address appears on some server-generated pages, such226# as error documents. e.g. [email protected]227#228ServerAdmin you@example.com229230#231# ServerName gives the name and port that the server uses to identify itself.232# This can often be determined automatically, but we recommend you specify233# it explicitly to prevent problems during startup.234#235# If your host doesn't have a registered DNS name, enter its IP address here.236#237#ServerName www.example.com:80238239#240# Deny access to the entirety of your server's filesystem. You must241# explicitly permit access to web content directories in other242# <Directory> blocks below.243#244<Directory />245AllowOverride none246Require all denied247</Directory>248249#250# Note that from this point forward you must specifically allow251# particular features to be enabled - so if something's not working as252# you might expect, make sure that you have specifically enabled it253# below.254#255256#257# DocumentRoot: The directory out of which you will serve your258# documents. By default, all requests are taken from this directory, but259# symbolic links and aliases may be used to point to other locations.260#261DocumentRoot "/usr/local/apache2/htdocs"262<Directory "/usr/local/apache2/htdocs">263#264# Possible values for the Options directive are "None", "All",265# or any combination of:266# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews267#268# Note that "MultiViews" must be named *explicitly* --- "Options All"269# doesn't give it to you.270#271# The Options directive is both complicated and important. Please see272# http://httpd.apache.org/docs/2.4/mod/core.html#options273# for more information.274#275Options Indexes FollowSymLinks276277#278# AllowOverride controls what directives may be placed in .htaccess files.279# It can be "All", "None", or any combination of the keywords:280# AllowOverride FileInfo AuthConfig Limit281#282AllowOverride None283284#285# Controls who can get stuff from this server.286#287Require all granted288</Directory>289290#291# DirectoryIndex: sets the file that Apache will serve if a directory292# is requested.293#294<IfModule dir_module>295DirectoryIndex index.html296</IfModule>297298#299# The following lines prevent .htaccess and .htpasswd files from being300# viewed by Web clients.301#302<Files ".ht*">303Require all denied304</Files>305306#307# ErrorLog: The location of the error log file.308# If you do not specify an ErrorLog directive within a <VirtualHost>309# container, error messages relating to that virtual host will be310# logged here. If you *do* define an error logfile for a <VirtualHost>311# container, that host's errors will be logged there and not here.312#313ErrorLog /proc/self/fd/2314315#316# LogLevel: Control the number of messages logged to the error_log.317# Possible values include: debug, info, notice, warn, error, crit,318# alert, emerg.319#320LogLevel warn321322<IfModule log_config_module>323#324# The following directives define some format nicknames for use with325# a CustomLog directive (see below).326#327LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined328LogFormat "%h %l %u %t \"%r\" %>s %b" common329330<IfModule logio_module>331# You need to enable mod_logio.c to use %I and %O332LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio333</IfModule>334335#336# The location and format of the access logfile (Common Logfile Format).337# If you do not define any access logfiles within a <VirtualHost>338# container, they will be logged here. Contrariwise, if you *do*339# define per-<VirtualHost> access logfiles, transactions will be340# logged therein and *not* in this file.341#342CustomLog /proc/self/fd/1 common343344#345# If you prefer a logfile with access, agent, and referer information346# (Combined Logfile Format) you can use the following directive.347#348#CustomLog "logs/access_log" combined349</IfModule>350351<IfModule alias_module>352#353# Redirect: Allows you to tell clients about documents that used to354# exist in your server's namespace, but do not anymore. The client355# will make a new request for the document at its new location.356# Example:357# Redirect permanent /foo http://www.example.com/bar358359#360# Alias: Maps web paths into filesystem paths and is used to361# access content that does not live under the DocumentRoot.362# Example:363# Alias /webpath /full/filesystem/path364#365# If you include a trailing / on /webpath then the server will366# require it to be present in the URL. You will also likely367# need to provide a <Directory> section to allow access to368# the filesystem path.369370#371# ScriptAlias: This controls which directories contain server scripts.372# ScriptAliases are essentially the same as Aliases, except that373# documents in the target directory are treated as applications and374# run by the server when requested rather than as documents sent to the375# client. The same rules about trailing "/" apply to ScriptAlias376# directives as to Alias.377#378ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"379380</IfModule>381382<IfModule cgid_module>383#384# ScriptSock: On threaded servers, designate the path to the UNIX385# socket used to communicate with the CGI daemon of mod_cgid.386#387#Scriptsock cgisock388</IfModule>389390#391# "/usr/local/apache2/cgi-bin" should be changed to whatever your ScriptAliased392# CGI directory exists, if you have that configured.393#394<Directory "/usr/local/apache2/cgi-bin">395AllowOverride None396Options None397Require all granted398</Directory>399400<IfModule headers_module>401#402# Avoid passing HTTP_PROXY environment to CGI's on this or any proxied403# backend servers which have lingering "httpoxy" defects.404# 'Proxy' request header is undefined by the IETF, not listed by IANA405#406RequestHeader unset Proxy early407</IfModule>408409<IfModule mime_module>410#411# TypesConfig points to the file containing the list of mappings from412# filename extension to MIME-type.413#414TypesConfig conf/mime.types415416#417# AddType allows you to add to or override the MIME configuration418# file specified in TypesConfig for specific file types.419#420#AddType application/x-gzip .tgz421#422# AddEncoding allows you to have certain browsers uncompress423# information on the fly. Note: Not all browsers support this.424#425#AddEncoding x-compress .Z426#AddEncoding x-gzip .gz .tgz427#428# If the AddEncoding directives above are commented-out, then you429# probably should define those extensions to indicate media types:430#431AddType application/x-compress .Z432AddType application/x-gzip .gz .tgz433434#435# AddHandler allows you to map certain file extensions to "handlers":436# actions unrelated to filetype. These can be either built into the server437# or added with the Action directive (see below)438#439# To use CGI scripts outside of ScriptAliased directories:440# (You will also need to add "ExecCGI" to the "Options" directive.)441#442#AddHandler cgi-script .cgi443444# For type maps (negotiated resources):445#AddHandler type-map var446447#448# Filters allow you to process content before it is sent to the client.449#450# To parse .shtml files for server-side includes (SSI):451# (You will also need to add "Includes" to the "Options" directive.)452#453#AddType text/html .shtml454#AddOutputFilter INCLUDES .shtml455</IfModule>456457#458# The mod_mime_magic module allows the server to use various hints from the459# contents of the file itself to determine its type. The MIMEMagicFile460# directive tells the module where the hint definitions are located.461#462#MIMEMagicFile conf/magic463464#465# Customizable error responses come in three flavors:466# 1) plain text 2) local redirects 3) external redirects467#468# Some examples:469#ErrorDocument 500 "The server made a boo boo."470#ErrorDocument 404 /missing.html471#ErrorDocument 404 "/cgi-bin/missing_handler.pl"472#ErrorDocument 402 http://www.example.com/subscription_info.html473#474475#476# MaxRanges: Maximum number of Ranges in a request before477# returning the entire resource, or one of the special478# values 'default', 'none' or 'unlimited'.479# Default setting is to accept 200 Ranges.480#MaxRanges unlimited481482#483# EnableMMAP and EnableSendfile: On systems that support it,484# memory-mapping or the sendfile syscall may be used to deliver485# files. This usually improves server performance, but must486# be turned off when serving from networked-mounted487# filesystems or if support for these functions is otherwise488# broken on your system.489# Defaults: EnableMMAP On, EnableSendfile Off490#491#EnableMMAP off492#EnableSendfile on493494# Supplemental configuration495#496# The configuration files in the conf/extra/ directory can be497# included to add extra features or to modify the default configuration of498# the server, or you may simply copy their contents here and change as499# necessary.500501# Server-pool management (MPM specific)502#Include conf/extra/httpd-mpm.conf503504# Multi-language error messages505#Include conf/extra/httpd-multilang-errordoc.conf506507# Fancy directory listings508#Include conf/extra/httpd-autoindex.conf509510# Language settings511#Include conf/extra/httpd-languages.conf512513# User home directories514#Include conf/extra/httpd-userdir.conf515516# Real-time info on requests and configuration517#Include conf/extra/httpd-info.conf518519# Virtual hosts520#Include conf/extra/httpd-vhosts.conf521522# Local access to the Apache HTTP Server Manual523#Include conf/extra/httpd-manual.conf524525# Distributed authoring and versioning (WebDAV)526#Include conf/extra/httpd-dav.conf527528# Various default settings529#Include conf/extra/httpd-default.conf530531# Configure mod_proxy_html to understand HTML4/XHTML1532<IfModule proxy_html_module>533Include conf/extra/proxy-html.conf534</IfModule>535536# Secure (SSL/TLS) connections537#Include conf/extra/httpd-ssl.conf538#539# Note: The following must must be present to support540# starting without SSL on platforms with no /dev/random equivalent541# but a statically compiled-in mod_ssl.542#543<IfModule ssl_module>544SSLRandomSeed startup builtin545SSLRandomSeed connect builtin546</IfModule>547548HttpProtocolOptions Unsafe549550551