httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Streeter <>
Subject Re: [users@httpd] Allowing users to view content of password-protected directory
Date Sun, 27 Jan 2013 07:06:43 GMT

> My problem is that I want users who have logged in to the
> password-protected directory to be able to view a listing of the
> content of the directory and its subdirectories. None of the
> directories have index files, so under normal conditions, an attempt
> to access the directory would yielding a listing of the directory
> content.
> However, the present coding (or my hosting company's configuration)
> does not allow that. An attempt to view
> (the protected directory) yields the
> following error message, even when the user has logged in through
> password access:
> 403 Permission Denied
> You do not have permission for this request /subscribers/

I tried this with a cPanel account and an .htaccess file that was nearly
identical to yours and it worked for me (It showed the directory listing
after I logged in).  I would try the following:

1) Temporarily remove the password protection on the directory you want
to protect and then re-add it.  Use the cPanel File Manager to help
ensure that the corresponding passwd file is created.

2) Verify that the corresponding passwd file has been created.  Make
sure that it's there, that it has the username you expect, and that the
directory it is in matches the directory in your .htaccess

3) If that doesn't work, try to temporarily add an index.html file in
the directory you're trying to protect.  This might provide a clue as to
whether or not it has anything to do with the directory listing and the
password protection not working together.

4) If it still doesn't work, I would suggest opening a ticket with your
hosting provider.  If they can't resolve it, they should at least be
able to let you know why it's not possible.

I hope that helps,
-Michael S.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message