How To Change the Default Page on Apache Tomcat

Techwalla may earn compensation through affiliate links in this story. Learn more about our affiliate and product review process here.
An Internet network over a cityscape.
Image Credit: chombosan/iStock/Getty Images

Apache is a website hosting solution mostly used on Linux platforms. Apache also has Windows compatibility, and it's used on some Microsoft servers. Apache Tomcat has one file that is used to configure its settings. This file is httpd.conf, and it is used to set the default web page.


Step 1

Double-click the "My Computer" icon and navigate to the installation directory of Apache. In the "conf" directory, double-click the "httpd.conf" file.

Video of the Day

Step 2

Open httpd.conf with Notepad. Scroll down to the following line in the configuration file. DirectoryIndex index.html index.jsp index.php


Step 3

Change the DirectoryIndex line with the custom page. Below is an example of how the file should be configured for a custom default page. DirectoryIndex myCustomPage.php index.html index.jsp index.php




Report an Issue

screenshot of the current page

Screenshot loading...