I have created a protective directory on one of my sites, and given access to the user, however when I try to access it and log in, I get:
Forbidden
You don’t have permission to access /restricted/ on this server.
Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.4.6 PHP/5.2.4-2ubuntu5.6 with Suhosin-Patch mod_ruby/1.2.6
[Fri May 29 22:18:17 2009] [error] [client 65.100.249.52] user ******** not found: /restricted
[Fri May 29 22:18:46 2009] [error] [client 65.100.249.52] user ************************ not found: /restricted
[Fri May 29 22:20:22 2009] [error] [client 65.100.249.52] Directory index forbidden by Options directive: /home/atiptopcomputer/public_html/restricted/
[Fri May 29 22:20:55 2009] [error] [client 65.100.249.52] Directory index forbidden by Options directive: /home/atiptopcomputer/public_html/restricted/
[Fri May 29 22:23:28 2009] [error] [client 65.100.249.52] Directory index forbidden by Options directive: /home/atiptopcomputer/public_html/restricted/
[Fri May 29 22:23:28 2009] [error] [client 65.100.249.52] File does not
One is because the username wasn’t one listed within the .htaccess for that directory – so you might want to look in the file there and make sure the user it lists is the one you’re using.
Second, is that it looks like you’re attempting to view the directory /restricted/, but the Apache options are set such that you have to pick a specific file name, it’s not set to allow you to browse.
So solve that, either go directly to a specific file, or edit the config for that VirtualHost, and set the "Indexes" flag in the "Options" section.
-Eric