Possible to keep .htpasswd above www root directory?

Page: 1


Registered User
3 posts
Hi! I've read that it is safer and more secure if the .htpasswd file is kept in a private folder above the www root directory, so that the file cannot be web-accessible. WAM by default seems to put the file in the www root directory. Is there any way to make it use a higher level private folder?

Currently, the .htpasswd file is residing in "/public_html/" along with .htaccess and index.html.

I would like .htpasswd to be in "/.htpasswds/", but leaving .htaccess and index.html in "/public_html/".

Can this be done?

VP of Product Development
11,539 posts
Online Now
Sorry, but no. They all go in the server root folder. ~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~
Scott A. Swedorski
VP of Product Development

Registered User
3 posts
Thanks Scott. Do you think there is much of a risk by having .htpasswd in the root folder, or should I not worry too much?

VP of Product Development
11,539 posts
Online Now
Paul Finnemore wrote:
Thanks Scott. Do you think there is much of a risk by having .htpasswd in the root folder, or should I not worry too much?

None at all. Apache will not even allow those files to be viewable over the Web. ~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~
Scott A. Swedorski
VP of Product Development

Registered User
3 posts
That's good news, and thanks again. Excellent program by the way, very easy to use and just what I was looking for.

Please Login to Reply

Download Our Software:

... and don't forget about our Free Software