Drew LeSueur
Drew LeSueur

Reputation: 20145

Apache http basic authentication?

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

Answers (1)

Pascal Qyy
Pascal Qyy

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

Related Questions