.htpasswd login failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi List,


 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@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@sun /usr/local/www/testblock]# cat .htpasswd
test:Nkw3seTaTE16I
[root@sun /usr/local/www/testblock]#


<VirtualHost *:80>
ServerName   mysite.com

<Location />
AuthType Basic
AuthName "Auth"
AuthUserFile "/usr/local/www/testblock/.htpasswd"
Require valid-user
RewriteEngine On
RewriteRule ^/(.*) http://127.0.0.1:8081/VirtualHostBase/http/mysite.com:80/site1/VirtualHostRoot/$1 [L,P]
</Location>
ErrorLog /var/log/apache/site1/error_log
CustomLog /var/log/apache/site2/access.log combined
</VirtualHost>

Any hints most welcome

Thanks in advance
KK











[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux