Reputation: 20145
Is there some simple code that I can add to an .htaccess
file or my virtual host file to enforce http basic auth?
Upvotes: 3
Views: 2413
Reputation: 4502
What about this ?
AuthUserFile /my/derectory/.htpasswd
Require valid-user
AuthName "Secured Access"
AuthType Basic
the interesting part for you is Require valid-user
But if you can, please provide more informations about why you have you tried to do ^^
Upvotes: 6