Thursday, February 16, 2012

Apache configuration-default index page


You may wander which file to display in your Apache server when people
click your website  http://yourdomain.com.

It depends on how you configure your Apache server. In your httpd.conf, you need to add
lines:
       <IfModule dir_module>
               DirectoryIndex index.php  index.html
 </IfModule>
The Apache web server will first look for index.php file first and then index.html as the
order above when people click   your website such as http://yourdomain.com.

No comments:

Post a Comment