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