password protecting an apache folder does not work[SOLVED]
Posted: Sun Apr 30, 2006 10:45 am
I am trying to password protect a folder called 'temp' under htdocs.
I am not good at Apache stuff so if I am wrong at something, please help me understand the mistake I have done.
temp is at:
I have a .htaccess file in temp folder.
I have put 'rag' instead of valid-user which was in the template, I have done this because I had the doubt that how will I tell apache which username should it use to authenticate. Can anyone tell me what encryption is this?
I have a .htpasswd file in root of Apache with content
But when I try to access using: http://localhost:8080/temp/phpinfo.php, it does not ask me to authenticate
fyi: phpinfo.php is a sample file that is available in the mentioned directory
I am not good at Apache stuff so if I am wrong at something, please help me understand the mistake I have done.
temp is at:
I have a .htaccess file in temp folder.
Code: Select all
AuthName "Development Area"
AuthType Basic
AuthUserFile /.htpasswd
Require "rag"I have a .htpasswd file in root of Apache with content
Code: Select all
rag:.*****fyi: phpinfo.php is a sample file that is available in the mentioned directory