Sometimes, you need to protect a certain location with Http Access and users must enter username and password to view that location.
A simple way to do this is from Apache configuration file or from .htaccess
<Location /my_location>
AllowOverride AuthConfig
AuthName “Please login!”
AuthType Basic
AuthUserFile /passwd/.htpasswdrequire valid-user
<LIMIT GET>
require my_user
</LIMIT>
</Location>
Cheers,