It took me some time to realise so I am adding it for others as well:
If php is configured over php-cgi, the Authorisation Header is stripped (and not available in $_SERVER) which will make theserver password-check in server.php impossible.
This can be easily solved by adding a .htaccess-file with the following content:
RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.+)$
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
It took me some time to realise so I am adding it for others as well:
If php is configured over php-cgi, the Authorisation Header is stripped (and not available in $_SERVER) which will make theserver password-check in server.php impossible.
This can be easily solved by adding a .htaccess-file with the following content:
More for example here: https://www.codepunker.com/blog/php-a-primer-on-the-basic-authorization-header