The software described in this documentation is either in Extended Support or Sustaining Support. See https://www.oracle.com/us/support/library/enterprise-linux-support-policies-069172.pdf for more information.
Oracle recommends that you upgrade the software described by this documentation as soon as possible.

15.4 Testing the Apache HTTP Server

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 the ServerName 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.