I mostly have a web hosting configuration where there is a frontal reverse proxy, and one or more backend Docker or LXC container.
I need to perform "Basic Authentication" at the Reverse Proxy level.
<VirtualHost *:443>
ServerName elk.rktmb.org
<Proxy *>
Require all granted
</Proxy>
ProxyPass / http://172.19.0.1:5601/
ProxyPassReverse / http://172.19.0.1:5601/
ProxyPreserveHost On
ProxyRequests On
<Location />
AuthType Basic
AuthName "Ask to Mihamina"
# (Following line optional)
AuthBasicProvider file
AuthUserFile "/etc/httpd/conf/extra/users"
Require user freerace
</Location>
</VirtualHost>