How to remove “Red Hat Enterprise Linux Test Page”

Symptoms :
After i installed apache httpd on Red Hat Enterprise Linux (RHEL) server, i got the following message :
Red Hat Enterprise Linux Test Page

Solution :
Go to welcome.conf file :

    [root@rhel6 ~]# vi /etc/httpd/conf.d/welcome.conf
    

To disable the Welcome page, comment out all the lines below :

    # 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.
    #
    <LocationMatch "^/+$">
        Options -Indexes
        ErrorDocument 403 /error/noindex.html
    </LocationMatch>
    

Comment out all the lines as below :

    # 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.
    #
    #<LocationMatch "^/+$">
    #    Options -Indexes
    #    ErrorDocument 403 /error/noindex.html
    #</LocationMatch>
    

Reload the apache httpd service to take effect :

    [root@rhel6 ~]# service httpd reload
    Reloading httpd:
    

2 Replies to “How to remove “Red Hat Enterprise Linux Test Page””

Leave a Reply

Your email address will not be published. Required fields are marked *