How To remove Apache welcome/test page on CentOS 7/8
(: June 19, 2019)
The Apache HTTP Server is free and open-source cross-platform web server released under the Apache License. After installation of Apache web server on a CentOS operating system, there is a default welcome test page which looks similar to below.
To remove this welcome page, delete the file
sudo rm -f /etc/httpd/conf.d/welcome.conf
Restart httpd service after deleting welcome test page configuration file.
sudo systemctl restart httpd
If you access the Server hostname or IP address, you should get a directory listing unless you have a web application.
Check other Apache related articles in our blog.