Home > Apache, php, windows > Add index.php to DirectoryIndex in Apache2.2 httpd.conf on Windows

Add index.php to DirectoryIndex in Apache2.2 httpd.conf on Windows

If you want to give Apache2.2 the ability to serve up an index.php file by default, in addition to index.html, you must add”index.php” to the DirectoryIndex entry in the httpd.conf file for Apache2.2.

The entry needs to look something like this:

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>

Advertisements
Categories: Apache, php, windows
  1. March 1, 2011 at 5:01 am

    Thanks a lot. It works now. I have been breaking my head with new WordPress installation and now it got sorted out.

  1. March 9, 2010 at 2:58 pm

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: