To test that an Apache HTTP server is working:
From the local system, direct a browser on the local system to
http://localhost
.From a remote system, direct a browser to
http://
followed by the value of theServerName
directive specified in the configuration file (/etc/httpd/conf/httpd.conf
).
If the browser displays the Apache 2 Test Page, the server is working correctly.
To test that the server can deliver content, create an HTML file named
index.html
in the directory specified by the
DocumentRoot
directive (by default, /var/www/html
).
After reloading the page, the browser should display this HTML file instead of the Apache 2
Test Page.