Apache welcome.conf configuration example for CentOS Linux 7

Get the default configuration file welcome.conf for Apache, optimized for CentOS Linux 7. This example configuration ensures optimal compatibility and performance for Apache, making it easy to set up and adjust to meet your needs.

Find and download the configuration file here: /etc/httpd/conf.d/welcome.conf.

For more configurations and setup guides, visit our related files section to further customize your system.

    # 
# This configuration file enables the default "Welcome" page if there
# is no default index page present for the root URL.  To disable the
# Welcome page, comment out all the lines below. 
#
# NOTE: if this file is removed, it will be restored on upgrades.
#
<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /.noindex.html
</LocationMatch>

<Directory /usr/share/httpd/noindex>
    AllowOverride None
    Require all granted
</Directory>

Alias /.noindex.html /usr/share/httpd/noindex/index.html
Alias /noindex/css/bootstrap.min.css /usr/share/httpd/noindex/css/bootstrap.min.css
Alias /noindex/css/open-sans.css /usr/share/httpd/noindex/css/open-sans.css
Alias /images/apache_pb.gif /usr/share/httpd/noindex/images/apache_pb.gif
Alias /images/poweredby.png /usr/share/httpd/noindex/images/poweredby.png

    
  

Config Details

Location
/etc/httpd/conf.d/welcome.conf
Operating system
CentOS Linux 7
Length
22 lines
MD5 checksum
9d1328b985d0851eb5bc610da6122f44

Usage

Download the raw file with wget or curl

Wget

wget -O welcome.conf.example https://exampleconfig.com/static/raw/apache/centos7/etc/httpd/conf.d/welcome.conf

cURL

curl https://exampleconfig.com/static/raw/apache/centos7/etc/httpd/conf.d/welcome.conf > welcome.conf.example