How to make a folder (directory) safe with htpasswd

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

How to make a folder (directory) safe with htpasswd

Postby Jozjasz » 03. September 2009 20:14

Hello,
I am fresh.
I am trying to establish username and password for some directory, and make some html files secure by using htpasswd in c:\xampp\apache\bin\htpasswd

I started cmd and started htpasswd and some info popped up:

C:\Documents and Settings\Administrator>c:/xampp/apache/bin/htpasswd
Usage:
htpasswd [-cmdpsD] passwordfile username
htpasswd -b[cmdpsD] passwordfile username password

htpasswd -n[mdps] username
htpasswd -nb[mdps] username password
-c Create a new file.
-n Don't update file; display results on stdout.
-m Force MD5 encryption of the password (default).
-d Force CRYPT encryption of the password.
-p Do not encrypt the password (plaintext).
-s Force SHA encryption of the password.
-b Use the password from the command line rather than prompting for it.
-D Delete the specified user.
On Windows, NetWare and TPF systems the '-m' flag is used by default.
On all other systems, the '-p' flag will probably not work.


I do not understand all the message, what shall I do next to set a username and password to protect the directory and files in it?

thanks for help
Jozjasz
 
Posts: 8
Joined: 03. September 2009 19:48

Re: How to make a folder (directory) safe with htpasswd

Postby Wiedmann » 03. September 2009 20:56

what shall I do next to set a username and password to protect the directory and files in it?

http://httpd.apache.org/docs/2.2/howto/auth.html#gettingitworking
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 123 guests