burnout
11-14-02, 10:10 PM
I just opened up my account here at powweb and I must say, I'm quite impressed.
However, I'm a bit new to the whole .htaccess game. But I was hoping someone could answer a few questions.
I want to password protect a directory. I've created a .htaccess file for the directory that looks like this:
AuthUserFile /pass/.htpasswd
AuthGroupFile /dev/null
AuthName "Protected Area"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
I based this off of information obtained from EZ Pass. I created a directory called pass to place the .htpasswd file that is outside the htdocs directory. My questions are as follows:
[list=1]
Using this set up, what permissions would I have to set on the pass directory and .htpasswd file?
The pass directory is in my root folder along with htdocs, cgi-bin etc.. but is the above path appopriate? Should I instead use a relative path?
What can I use to generate the password file? The htpasswd util on my windows box uses the wrong form of encryption (MD5 instead of Crypt) and the EZ Pass encryption algorithm doesn't seem to work for me either (I'm denied access).
[/list=1]
Many thanks for any help.
However, I'm a bit new to the whole .htaccess game. But I was hoping someone could answer a few questions.
I want to password protect a directory. I've created a .htaccess file for the directory that looks like this:
AuthUserFile /pass/.htpasswd
AuthGroupFile /dev/null
AuthName "Protected Area"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
I based this off of information obtained from EZ Pass. I created a directory called pass to place the .htpasswd file that is outside the htdocs directory. My questions are as follows:
[list=1]
Using this set up, what permissions would I have to set on the pass directory and .htpasswd file?
The pass directory is in my root folder along with htdocs, cgi-bin etc.. but is the above path appopriate? Should I instead use a relative path?
What can I use to generate the password file? The htpasswd util on my windows box uses the wrong form of encryption (MD5 instead of Crypt) and the EZ Pass encryption algorithm doesn't seem to work for me either (I'm denied access).
[/list=1]
Many thanks for any help.