Help needed for htaccess authentication on apache with xampp

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Help needed for htaccess authentication on apache with xampp

Postby praveenvt » 09. August 2007 20:16

I am using .htaccess for authentication of a folder on the apache server.
httaccess file contains

AuthUserFile D:\xampp\xampp\htdocs\me261\testfolder\.htpasswd
AuthName "uploadFolder"
AuthType Basic
require encrypt

and my .htpasswd file which is one folder above the folder to be authenticated contains

encrypt:29bW2ksvE8LUY


I have to map this drive to use it.The same code works fine on a linux system but has problem with windows.Any help would be much appreciated.
Thanks
praveenvt
 
Posts: 3
Joined: 09. August 2007 20:04
Location: US

Postby Wiedmann » 09. August 2007 20:43

You must use md5 or plain-text passwords on Windows.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby praveenvt » 09. August 2007 21:22

I used MD5 encryption for the password.
Thanks
praveenvt
 
Posts: 3
Joined: 09. August 2007 20:04
Location: US

Postby Wiedmann » 09. August 2007 21:35

I used MD5 encryption for the password.

praveenvt wrote:encrypt:29bW2ksvE8LUY

That's not md5.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby praveenvt » 09. August 2007 21:53

I tried again with MD5,now the .htpasswd file has
encrypt:45becd6c5dd83e2179cd81df8640cd5a

Still not able to authenticate.
Is this a problem due to the path of the folder.Is there a conflict with the path given , since the mapped drive is not the D: drive on the system.The path I have given(D:\xampp\xampp\htdocs\me261\testfolder\.htpasswd) is the defalut path for the server.
Thanks
praveenvt
 
Posts: 3
Joined: 09. August 2007 20:04
Location: US

Postby Wiedmann » 09. August 2007 22:05

I tried again with MD5,now the .htpasswd file has
encrypt:45becd6c5dd83e2179cd81df8640cd5a

A valid md5 hash must start with "$apr1$"... (don't use foreign tools to maintain the .htpasswd file).

(You can also try a plain-text password)

Is this a problem due to the path of the folder.

I don't know. Look into your error.log if there is an other problem.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 84 guests