Thursday, September 28, 2017

How to remove apache test page in CentOS

After successful htttpd install you would seen apache test page from http://localhost

if you want to remove that page you must command some line as following

# vi /etc/httpd/conf.d/welcome.conf

# the root URL.  To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>

command as follows



#<LocationMatch "^/+$">
#    Options -Indexes
#    ErrorDocument 403 /error/noindex.html
#</LocationMatch>

No comments:

Post a Comment