never thought to open a thread on such a topic.
We have icingaweb2 set up with external Apache Authentication. Thus I want to remove self-service from Apache authentication.
I tried the usual things as
<Location /icingaweb2/director/self-service>
Order allow,deny
Allow from all
Satisfy any
AuthType none
</Location>
we had similar issue and it costs me 2 days to find a solution
And Finally here it is…
The problem is that we cannot handle URI inside the location because it is changed due to REWRITE Rules…
So then the solution was to set a varaible called self-service when a Powershell comes in and later use this env:
SetEnvIf User-Agent “.WindowsPowerShell.” self-service
and:
Require valid-user
Require env self-service
This means(as RequireAny is implcit) we required a valid-user OR a User-Agent which contains WindowsPowerShell( which is protected by api-key and this stuff handled outside apache)