Thursday, March 7, 2013

Changing Basic Authentication password for an apache web site.



  1. Move to the folder where we retain the .htpasswd file (and hence want to protect)
  2. Create or overwrite the .htpasswd file (in this case the user zephir exists already):
  3. Reboot your browser and you should be challenged again for passwd
# htpasswd -c .htpasswd zephir
New password:
Re-type new password:
Adding password for user zephir


# apachectl restart or service httpd restart or systemctl restart httpd.service 








No comments:

Post a Comment