I have always understood that the way to tell Apache to serve the index.php file was to include these lines in httpd.conf. Right now I am doing local development on OSX, I thought that if I just delete the lines it would stop automatically serving index.php pages if it finds one in a folder.
The reason I want this is because I find it easier to have a listing of the files and folders and just click on the ones I want. Deleting index.html and index.php does not seem to work. Does anybody know how to stop Apache from automatically serving index.php? Thanks
Basically, find your <Directory> listing in Apache’s conf, remove/comment the DirectoryIndex line if you like (although if there are no index files in the designated directory, shouldn’t be an issue), and then add an Options +Indexes line.
jeffreylees info and advice worked great. But for some reason on most of our Mac’s it could not get it. I found another post that explained if you make a .htaccess file and leave where it says DirectoryIndex blank it will do just that. You you put the .htaccess file in your server root. Doing it this way seemed to work well. We only want this for local development of course.
Your tag looping caffeine is great!!! I am trying to break;
out of that loop! Thanks