Avatar of diarmuidod
Flag for Ireland

asked on 

htaccess password

I have just created an htaccess password protected directory.

The first time you enter the username and password it does not let you in to the directory it just slows you the enter password dialog box again.

The user name and password does work the second time you enter them.

The only issue I encountered when setting up the htaccess password was with the path to the .htpasswd file.

The code I am using is as follows:

AuthType basic
AuthName "prompt"
AuthUserFile /hsphere/local/home/myaccountname/.htpasswd
AuthGroupFile /dev/null
Require valid-user

It is a linux server.

Perhaps I still dont have the path to the password file just right?

Can anyone advise?

Many thanks - D
Web ServersLinux SecurityLinux

Avatar of undefined
Last Comment

8/22/2022 - Mon