Any BSDians hands on with apache-2.2 webserver,

dhaneshk k dhaneshkk at
Thu Mar 5 21:45:43 PST 2009

.htpasswd Failure .. htpasswd recreation also not working 

 I added a <Location />   for     restricting access to   my  web site URL    . I used   Basic  Authentication module..

I created      #htpasswd  -c  .htpasswd  test 

   password  :  test   



and restarted  apache .   The  path to  AuthUserFile   is   absolutely the system path no error in   that ..

but when I tried to   access    mysites  URL  it  showing the   Authentication Dialogue  ,  I entered    username  : test 

password  : test   ,   but  its not loging in ..)

I recreated the   password  many times  with  other user  names and passwords    .. but still I can't login  ..

what may be the issue ?  how can I fix the issue ?

This is the setup ....

[root at sun /usr/local/www/testblock]# ls -al

total 6

drwxr-xr-x   2 www   www    512 Mar  5 19:13 .

drwxr-xr-x  11 root  wheel  512 Mar  5 16:10 ..

-rw-r-xr-x   1 www   www     19 Mar  6 09:52 .htpasswd

[root at sun /usr/local/www/testblock]# cat .htpasswd 


[root at sun /usr/local/www/testblock]# 

<VirtualHost *:80>


<Location />

AuthType Basic

AuthName "Auth"

AuthUserFile "/usr/local/www/testblock/.
Require valid-user
RewriteEngine On
RewriteRule ^/(.*)$1 [L,P]

ErrorLog /var/log/apache/site1/error_log
CustomLog /var/log/apache/site2/access.log combined

Any hints most welcome

Thanks in advance 
Windows Live Messenger. Multitasking at its finest.

More information about the freebsd-questions mailing list