One-time set basic auth for all virtualmin servers

1 post / 0 new
#1 Wed, 09/21/2016 - 07:17
v.kryukov76

One-time set basic auth for all virtualmin servers

I am trying to set basic auth on all virtual servers from global Apache configuration file

Following this SO answer http://stackoverflow.com/a/9409461/3129554

I put this code at the end of /etc/apache2/apache2.conf, but nothing happens after server restarts

<Location "/"> AuthType Basic AuthName "Collaborator" AuthUserFile "/usr/local/share/apache_basic_auth/.htpasswd" </Location>

Maybe there is any Virtualmin-specific setting for than

Note that I am trying to set authentication for all existing servers, not for new only