I am taking a general linux class, using RH8. our current project is to password protect the default page in apache(i.e.,
http://localhost/) so that the browser asks for a password, and you cant get to the page without entering a/the correct one
i have already created a .htpasswd file although i am not sure i put it in the right folder.
i am having trouble finding out where the actual default page is, and from there creating a .htaccess file to let apache know about the .htpasswd file.
in the spirit of linux, the instructor has encouraged the use of forums/mans/howtos/ etc, so it isnt cheating for me to get info from anywhere.
basically, what i need is 1)where should the .htpasswd file go, 2)where does the .htaccess file go, 3) how do i find the default page, and 4) am i even on the right track?
complication-i dont have a whole lot of access to the comp i am trying to do this on..its in a classroom, not a lab, that is used often. however, i can just do it next class meeting if it is pretty straightforward.
any help will be appreciated.
thank you, philip