Apache Authentication

Apache Authentication



Creating Password

Create htpasswd file for current (pwd) path

Apply here payday loans

htpasswd -mc .htpasswd yourusername

Insert new password Create .htaccess file for current path

touch .htaccess
mcedit .htaccess

Paste this lines to .htaccess file

AuthName "Login to the Private Area"
AuthType Basic
AuthUserFile /var/www/html/{protected_dir}/.htpasswd
Require user {username}

[notice]Change {username} and {protected_dir} for your own[/notice]

Leave a Reply

Your email address will not be published. Required fields are marked *

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>