Devs want to be able to protect a given vhost with Apache2 Basic Authentication. This will implemented using a new var called htpasswd_password, if set to false no authentication will occur, if set to anything else this string will be the password, example:
in this case when opening http://foo basic auth requires usernamefoo and passwordmy-secret-password. The username will always default to the vhost item (as in this example foo).
Devs want to be able to protect a given
vhost
with Apache2 Basic Authentication. This will implemented using a new var calledhtpasswd_password
, if set tofalse
no authentication will occur, if set to anything else this string will be the password, example:Disable basic authentication:
Enable basic authentication:
in this case when opening http://foo basic auth requires
username
foo
andpassword
my-secret-password
. Theusername
will always default to thevhost
item (as in this examplefoo
).