Hi @gebeer
for me, your solution was just the first step to get it to work.
I added your line to my .htaccess (by the way, there is another way of notation, both are working for me, I don't know the difference, so use
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
OR RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
But I had to do a further step in the rest.inc. Before your Auth-Code-Block, I had to insert:
//Basic HTTP Authentication
if (isset($_SERVER['HTTP_AUTHORIZATION'])) {
list($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW'])=explode(':',base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'],6)));
} else if (isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])) {
list($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW'])=explode(':',base64_decode(substr($_SERVER['REDIRECT_HTTP_AUTHORIZATION'],6)));
}
//and now your code
if (isset($_SERVER['PHP_AUTH_USER'])) {
...
}
My server uses the REDIRECT_HTTP_AUTHORIZATION value.
Now it works for me. Many thanks to your help.