When any directory is called from Apache web server, the web server checks whether the directory has index.html file. If it is not, it will show all the files that are in that directory. If someone wants to change the default index file or add more files, he should modify the Apache httpd.conf Configuration File.
htttpd.conf file is located under the "conf" directory of apache installation directory (for instance C:\Apache\conf). After opening it with notepad or other text editor, find the tag named "directory". By default, it has only one file named "index.html". By separating with comma, you can add other files such as index.php, default.php, index.htm.
An example of the same line is as follows:
DirectoryIndex index.html index.php
Hiç yorum yok:
Yorum Gönder