First Create .htpasswd file.
htpasswd -c /opt/app/.htpasswd admin
New password:
Re-type new password:
After that you can add .htaccess in your application.
vi /opt/app/.htaccess
AuthUserFile /opt/app/.htpasswd
AuthGroupFile /dev/null
AuthName admin
AuthType Basic
require valid-user
# Enable only if you want authentication less access for some specific host.
Allow from 192.168.10.160
Satisfy Any
Wednesday, July 21, 2010
Subscribe to:
Post Comments (Atom)
3 comments:
great help dude.!
Seems like the media uploader is getting http errors using this type of http authentication.
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
Devops Training in electronic city
Post a Comment