Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Mar 2009 05:45:42 +0000
From:      dhaneshk k <dhaneshkk@hotmail.com>
To:        <freebsd-questions@freebsd.org>
Subject:   Any  BSDians  hands on  with apache-2.2 webserver,
Message-ID:  <COL106-W75EEF8CFA9F9E279CAD2ADB2A50@phx.gbl>

next in thread | raw e-mail | index | archive | help



.htpasswd Failure .. htpasswd recreation also not working=20






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





I created      #htpasswd  -c  .htpasswd  test=20



   password  :  test  =20


   =20

=20

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   Authenticat=
ion Dialogue  =2C  I entered    username  : test=20




password  : test   =2C   but  its not loging in ..)



I recreated the   password  many times  with  other user  names and passwor=
ds    .. 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=20

test:Nkw3seTaTE16I

[root@sun /usr/local/www/testblock]#=20





<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=2CP]

</Location>
ErrorLog /var/log/apache/site1/error_log
CustomLog /var/log/apache/site2/access.log combined
</VirtualHost>

Any hints most welcome

Thanks in advance=20
KK
_________________________________________________________________
Windows Live Messenger. Multitasking at its finest.
http://www.microsoft.com/india/windows/windowslive/messenger.aspx=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?COL106-W75EEF8CFA9F9E279CAD2ADB2A50>