Blame SOURCES/httpd.conf

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