906948
#
906948
# This is the main Apache HTTP server configuration file.  It contains the
906948
# configuration directives that give the server its instructions.
906948
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
906948
# In particular, see 
906948
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
906948
# for a discussion of each configuration directive.
906948
#
906948
# See the httpd.conf(5) man page for more information on this configuration,
906948
# and httpd.service(8) on using and configuring the httpd service.
906948
#
906948
# Do NOT simply read the instructions in here without understanding
906948
# what they do.  They're here only as hints or reminders.  If you are unsure
906948
# consult the online docs. You have been warned.  
906948
#
906948
# Configuration and logfile names: If the filenames you specify for many
906948
# of the server's control files begin with "/" (or "drive:/" for Win32), the
906948
# server will use that explicit path.  If the filenames do *not* begin
906948
# with "/", the value of ServerRoot is prepended -- so 'log/access_log'
906948
# with ServerRoot set to '/www' will be interpreted by the
906948
# server as '/www/log/access_log', where as '/log/access_log' will be
906948
# interpreted as '/log/access_log'.
906948
906948
#
906948
# ServerRoot: The top of the directory tree under which the server's
906948
# configuration, error, and log files are kept.
906948
#
906948
# Do not add a slash at the end of the directory path.  If you point
906948
# ServerRoot at a non-local disk, be sure to specify a local disk on the
906948
# Mutex directive, if file-based mutexes are used.  If you wish to share the
906948
# same ServerRoot for multiple httpd daemons, you will need to change at
906948
# least PidFile.
906948
#
906948
ServerRoot "/etc/httpd"
906948
906948
#
906948
# Listen: Allows you to bind Apache to specific IP addresses and/or
906948
# ports, instead of the default. See also the <VirtualHost>
906948
# directive.
906948
#
906948
# Change this to Listen on a specific IP address, but note that if
906948
# httpd.service is enabled to run at boot time, the address may not be
906948
# available when the service starts.  See the httpd.service(8) man
906948
# page for more information.
906948
#
906948
#Listen 12.34.56.78:80
906948
Listen 80
906948
906948
#
906948
# Dynamic Shared Object (DSO) Support
906948
#
906948
# To be able to use the functionality of a module which was built as a DSO you
906948
# have to place corresponding `LoadModule' lines at this location so the
906948
# directives contained in it are actually available _before_ they are used.
906948
# Statically compiled modules (those listed by `httpd -l') do not need
906948
# to be loaded here.
906948
#
906948
# Example:
906948
# LoadModule foo_module modules/mod_foo.so
906948
#
906948
Include conf.modules.d/*.conf
906948
906948
#
906948
# If you wish httpd to run as a different user or group, you must run
906948
# httpd as root initially and it will switch.  
906948
#
906948
# User/Group: The name (or #number) of the user/group to run httpd as.
906948
# It is usually good practice to create a dedicated user and group for
906948
# running httpd, as with most system services.
906948
#
906948
User apache
906948
Group apache
906948
906948
# 'Main' server configuration
906948
#
906948
# The directives in this section set up the values used by the 'main'
906948
# server, which responds to any requests that aren't handled by a
906948
# <VirtualHost> definition.  These values also provide defaults for
906948
# any <VirtualHost> containers you may define later in the file.
906948
#
906948
# All of these directives may appear inside <VirtualHost> containers,
906948
# in which case these default settings will be overridden for the
906948
# virtual host being defined.
906948
#
906948
906948
#
906948
# ServerAdmin: Your address, where problems with the server should be
906948
# e-mailed.  This address appears on some server-generated pages, such
906948
# as error documents.  e.g. admin@your-domain.com
906948
#
906948
ServerAdmin root@localhost
906948
906948
#
906948
# ServerName gives the name and port that the server uses to identify itself.
906948
# This can often be determined automatically, but we recommend you specify
906948
# it explicitly to prevent problems during startup.
906948
#
906948
# If your host doesn't have a registered DNS name, enter its IP address here.
906948
#
906948
#ServerName www.example.com:80
906948
906948
#
906948
# Deny access to the entirety of your server's filesystem. You must
906948
# explicitly permit access to web content directories in other 
906948
# <Directory> blocks below.
906948
#
906948
<Directory />
906948
    AllowOverride none
906948
    Require all denied
906948
</Directory>
906948
906948
#
906948
# Note that from this point forward you must specifically allow
906948
# particular features to be enabled - so if something's not working as
906948
# you might expect, make sure that you have specifically enabled it
906948
# below.
906948
#
906948
906948
#
906948
# DocumentRoot: The directory out of which you will serve your
906948
# documents. By default, all requests are taken from this directory, but
906948
# symbolic links and aliases may be used to point to other locations.
906948
#
906948
DocumentRoot "/var/www/html"
906948
906948
#
906948
# Relax access to content within /var/www.
906948
#
906948
<Directory "/var/www">
906948
    AllowOverride None
906948
    # Allow open access:
906948
    Require all granted
906948
</Directory>
906948
906948
# Further relax access to the default document root:
906948
<Directory "/var/www/html">
906948
    #
906948
    # Possible values for the Options directive are "None", "All",
906948
    # or any combination of:
906948
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
906948
    #
906948
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
906948
    # doesn't give it to you.
906948
    #
906948
    # The Options directive is both complicated and important.  Please see
906948
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
906948
    # for more information.
906948
    #
906948
    Options Indexes FollowSymLinks
906948
906948
    #
906948
    # AllowOverride controls what directives may be placed in .htaccess files.
906948
    # It can be "All", "None", or any combination of the keywords:
906948
    #   Options FileInfo AuthConfig Limit
906948
    #
906948
    AllowOverride None
906948
906948
    #
906948
    # Controls who can get stuff from this server.
906948
    #
906948
    Require all granted
906948
</Directory>
906948
906948
#
906948
# DirectoryIndex: sets the file that Apache will serve if a directory
906948
# is requested.
906948
#
906948
<IfModule dir_module>
906948
    DirectoryIndex index.html
906948
</IfModule>
906948
906948
#
906948
# The following lines prevent .htaccess and .htpasswd files from being 
906948
# viewed by Web clients. 
906948
#
906948
<Files ".ht*">
906948
    Require all denied
906948
</Files>
906948
906948
#
906948
# ErrorLog: The location of the error log file.
906948
# If you do not specify an ErrorLog directive within a <VirtualHost>
906948
# container, error messages relating to that virtual host will be
906948
# logged here.  If you *do* define an error logfile for a <VirtualHost>
906948
# container, that host's errors will be logged there and not here.
906948
#
906948
ErrorLog "logs/error_log"
906948
906948
#
906948
# LogLevel: Control the number of messages logged to the error_log.
906948
# Possible values include: debug, info, notice, warn, error, crit,
906948
# alert, emerg.
906948
#
906948
LogLevel warn
906948
906948
<IfModule log_config_module>
906948
    #
906948
    # The following directives define some format nicknames for use with
906948
    # a CustomLog directive (see below).
906948
    #
906948
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
906948
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
906948
906948
    <IfModule logio_module>
906948
      # You need to enable mod_logio.c to use %I and %O
906948
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
906948
    </IfModule>
906948
906948
    #
906948
    # The location and format of the access logfile (Common Logfile Format).
906948
    # If you do not define any access logfiles within a <VirtualHost>
906948
    # container, they will be logged here.  Contrariwise, if you *do*
906948
    # define per-<VirtualHost> access logfiles, transactions will be
906948
    # logged therein and *not* in this file.
906948
    #
906948
    #CustomLog "logs/access_log" common
906948
906948
    #
906948
    # If you prefer a logfile with access, agent, and referer information
906948
    # (Combined Logfile Format) you can use the following directive.
906948
    #
906948
    CustomLog "logs/access_log" combined
906948
</IfModule>
906948
906948
<IfModule alias_module>
906948
    #
906948
    # Redirect: Allows you to tell clients about documents that used to 
906948
    # exist in your server's namespace, but do not anymore. The client 
906948
    # will make a new request for the document at its new location.
906948
    # Example:
906948
    # Redirect permanent /foo http://www.example.com/bar
906948
906948
    #
906948
    # Alias: Maps web paths into filesystem paths and is used to
906948
    # access content that does not live under the DocumentRoot.
906948
    # Example:
906948
    # Alias /webpath /full/filesystem/path
906948
    #
906948
    # If you include a trailing / on /webpath then the server will
906948
    # require it to be present in the URL.  You will also likely
906948
    # need to provide a <Directory> section to allow access to
906948
    # the filesystem path.
906948
906948
    #
906948
    # ScriptAlias: This controls which directories contain server scripts. 
906948
    # ScriptAliases are essentially the same as Aliases, except that
906948
    # documents in the target directory are treated as applications and
906948
    # run by the server when requested rather than as documents sent to the
906948
    # client.  The same rules about trailing "/" apply to ScriptAlias
906948
    # directives as to Alias.
906948
    #
906948
    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
906948
906948
</IfModule>
906948
906948
#
906948
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
906948
# CGI directory exists, if you have that configured.
906948
#
906948
<Directory "/var/www/cgi-bin">
906948
    AllowOverride None
906948
    Options None
906948
    Require all granted
906948
</Directory>
906948
906948
<IfModule mime_module>
906948
    #
906948
    # TypesConfig points to the file containing the list of mappings from
906948
    # filename extension to MIME-type.
906948
    #
906948
    TypesConfig /etc/mime.types
906948
906948
    #
906948
    # AddType allows you to add to or override the MIME configuration
906948
    # file specified in TypesConfig for specific file types.
906948
    #
906948
    #AddType application/x-gzip .tgz
906948
    #
906948
    # AddEncoding allows you to have certain browsers uncompress
906948
    # information on the fly. Note: Not all browsers support this.
906948
    #
906948
    #AddEncoding x-compress .Z
906948
    #AddEncoding x-gzip .gz .tgz
906948
    #
906948
    # If the AddEncoding directives above are commented-out, then you
906948
    # probably should define those extensions to indicate media types:
906948
    #
906948
    AddType application/x-compress .Z
906948
    AddType application/x-gzip .gz .tgz
906948
906948
    #
906948
    # AddHandler allows you to map certain file extensions to "handlers":
906948
    # actions unrelated to filetype. These can be either built into the server
906948
    # or added with the Action directive (see below)
906948
    #
906948
    # To use CGI scripts outside of ScriptAliased directories:
906948
    # (You will also need to add "ExecCGI" to the "Options" directive.)
906948
    #
906948
    #AddHandler cgi-script .cgi
906948
906948
    # For type maps (negotiated resources):
906948
    #AddHandler type-map var
906948
906948
    #
906948
    # Filters allow you to process content before it is sent to the client.
906948
    #
906948
    # To parse .shtml files for server-side includes (SSI):
906948
    # (You will also need to add "Includes" to the "Options" directive.)
906948
    #
906948
    AddType text/html .shtml
906948
    AddOutputFilter INCLUDES .shtml
906948
</IfModule>
906948
906948
#
906948
# Specify a default charset for all content served; this enables
906948
# interpretation of all content as UTF-8 by default.  To use the 
906948
# default browser choice (ISO-8859-1), or to allow the META tags
906948
# in HTML content to override this choice, comment out this
906948
# directive:
906948
#
906948
AddDefaultCharset UTF-8
906948
906948
<IfModule mime_magic_module>
906948
    #
906948
    # The mod_mime_magic module allows the server to use various hints from the
906948
    # contents of the file itself to determine its type.  The MIMEMagicFile
906948
    # directive tells the module where the hint definitions are located.
906948
    #
906948
    MIMEMagicFile conf/magic
906948
</IfModule>
906948
906948
#
906948
# Customizable error responses come in three flavors:
906948
# 1) plain text 2) local redirects 3) external redirects
906948
#
906948
# Some examples:
906948
#ErrorDocument 500 "The server made a boo boo."
906948
#ErrorDocument 404 /missing.html
906948
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
906948
#ErrorDocument 402 http://www.example.com/subscription_info.html
906948
#
906948
906948
#
906948
# EnableMMAP and EnableSendfile: On systems that support it, 
906948
# memory-mapping or the sendfile syscall may be used to deliver
906948
# files.  This usually improves server performance, but must
906948
# be turned off when serving from networked-mounted 
906948
# filesystems or if support for these functions is otherwise
906948
# broken on your system.
906948
# Defaults if commented: EnableMMAP On, EnableSendfile Off
906948
#
906948
#EnableMMAP off
906948
EnableSendfile on
906948
906948
# Supplemental configuration
906948
#
906948
# Load config files in the "/etc/httpd/conf.d" directory, if any.
906948
IncludeOptional conf.d/*.conf