Trying to enable basic auth on apache2 SSL reverse-proxy, so I want to add a block to contain the authentication directives. No sign of Location in the YaST dropdown, I can do a block and edit the block contents OK, but no sign of or blocks. Can’t use because the request never hits the filesystem, being proxied unconditionally to another server.
It works fine manually, but if someone runs YaST, it wipes the block and removes authentication.
Is there a way to tell YaST that the directive exists, or a better way to get a virtual-server-wide authentication running SSL and ProxyPass?
<VirtualHost *:443>
…
SSLEngine on
SSLCertificateFile /etc/ssl/servercerts/servercert.pem
SSLCertificateKeyFile /etc/ssl/servercerts/serverkey.pem
…
ProxyPass / http://portal8080:8080
AuthType Basic
AuthName “login auth”
AuthUserFile /etc/httpd/passwd/passwords
Require Valid-User