I am new to Linux AND Apache. I thought I understood the directions I have read in order to get the results I want, but I think I missed something, somewhere.
What I'm trying to do is set up an .htaccess file that will:
A) Require a login/pw in order to view the page.
B) Deny directory listing.
3) If the directory name is the last part of the URL, default to index.asp.
So far, A and B work fantastic! It asks for a login name and password, and if you don't enter a filename it displays the "You don't have permission" message.
Unfortunately, the default document is not automatically being displayed as a result of the directory listing deny. Here is what I have in my .htaccess file:
AuthName "Authorized Personnel Only"
require user usr1
require user usr2
What have I done to prevent the default documents from displaying if only the directory is entered in the URL, sans filename? There is an index.asp file in the directory, but it's not displaying. Is it fairly easy to correct? If I need to add or remove anything from the httpd.conf file, cool.
Any assistance is greatly appreciated.