These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for One-time set basic auth for all virtualmin servers on the new forum.
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