I have multiple vhosts on a host running apache. It is a test system and I would like to give users "basic authentication" access to their sites.
For this I have a vhost file with basic auth configuration:
<VirtualHost *:80>
ServerName demo.com
ServerAlias test.demo.com
DocumentRoot /filepath/to/demo.com/public_html
<Location />
Deny from all
AuthUserFile /filepath/to/demo.com-users
AuthName authorization
AuthType Basic
Satisfy Any
require valid-user
</Location>
</VirtualHost>
This works fine and can be done per virtual host domain.
Question: For the staff I would like to set a global "auth directive" in the normal httpd.conf file that allows them to login to all vhosts in one step.
Can this be done and how?