Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Feb 132008
 

Create password file for basic Apache authentication

Answer:

To create password file for basic Apache authentication, you need to use the htpasswd command.

# htpasswd -c /var/www/.htpasswd  john

After entering the password, the htpasswd command will create the password file (.htpasswd) in the folder /var/www for user john.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>