protected directories

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

anyone know how I can resolve this?

I would expect that if it thought you were typing the username or password wrong.

The error message in the log files may give further clues as to what the issue is.
-Eric

I have verified the username and password, i am able to log into the server for ftp/webmail and databases with the same username and password.

Okay. What does the Apache error say though?

It would be in ~/logs/error_log.

Knowing the exact error listed in there will help determine how to resolve things :wink:
-Eric

here is the log

[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

Well, there’s two errors in the above.

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