Forum

Access control by Basic HTTP

Pippo
18 May 2008, 02:11
I'm in trouble with Basic HTTP.

When i try to connect to my website and i enter the login information hiawatha doesn't recognize my user and my password.

VirtualHost {
Hostname = my-domain
WebsiteRoot = /var/www/my-domain/my-folder
StartFile = admin.php
AccessLogfile = /var/www/my-domain/log/access.log
ErrorLogfile = /var/www/my-domain/log/error.log
ExecuteCGI = yes
FastCGI = PHP5
RequireSSL = yes
PasswordFile = basic:/var/www/my-domain/.passwords
}


This also happen with Digest HTTP.

Please, can you help me???
Hugo Leisink
18 May 2008, 11:00
Sure I will help you. Can you create a new .passwords file for me? With username 'test' and password 'test' and send it to me. So I can verify you created it the right way. What OS and Hiawatha version do you use?
Pippo
18 May 2008, 12:57
I am using Debian etch 4.0 and hiawatha last edition.

The .passwords file in basic mode is:

test:TLnRZQ4CzIJ5w

I have also tried the .passwords file in digest mode:

test:test


Is it right???
Hugo Leisink
18 May 2008, 14:02
What errors do you have in your error logfile? And please check that the htpasswd file is readable for hiawatha. Change to the userid you are using for hiawatha and try to read the htpasswd file using 'cat'.
Pippo
18 May 2008, 19:39
I find the solution.
The .passwords file i created using an online htpasswd generator was wrong.

So, i've installed the libapache-utils and used the htpasswd command line tool as you suggest in hiawatha man page.

Now, that's all ok!!!

Thanks for your support!!!
This topic has been closed.