At 15:01 11/02/2008 +0000, Fred wrote:
>One thing, though: I'd like to start shttpd from C:\SHTTPD, but 
>password-protect the sub-directory C:\SHTTPD\admin : How would I do this?

I made some progress :
1. After building .htpasswd with admin:<"test", but encrypted>, move it to 
./admin (important: otherwise, the root is password-protected)
2. Aim at http://localhost:8000/admin

=> Problem: When I type admin/test, it loops endlessly instead of letting 
me in:

=======
401 Unauthorized
WWW-Authenticate: Digest qop="auth", realm="localhost", nonce="1202751193"
=======

Could it be that shttpd is using a difference hashing mechanism from the 
one used by http://users.abac.com/cgi-bin/pass.pl ? How do encrypt a 
shttpd-compatible password?

I' ve also tried adding C:\SHTTPD\.htaccess with the following, to no avail:
=======
AuthUserFile "C:\SHTTPD\admin\.htpasswd"
AuthName "Please Enter User & PW"
AuthType Basic
require valid-user
=======

Thanks.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
shttpd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shttpd-general

Reply via email to