At 15:01 11/02/2008 +0000, Fred wrote:
>Do I need to install Apache just to get htdigest to create the 
>login/password combos that shttpd will then read from .htpasswd?

For those interested, more googling returned the answer: Apparently, shttpd 
is not able to _create_ an htpasswd file, but only to read from it. To 
create an httpasswd:
1. Launch Notepad
2. add a user name, such as "admin:"
3. Go to http://users.abac.com/cgi-bin/pass.pl to generate a password
4. Copy the encrypted password in htpasswd
5. Open a DOS box, and launch shttpd this way: "shttpd.exe -A .htpasswd 
localhost admin mypasswd".

=> 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've tried "shttpd.exe -A .htpasswd localhost/admin admin mypasswd", but 
I'm still prompted for the password when aiming at http://localhost:8000/ , 
ie. the root.

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