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