When using the AliasMatch directive in apache, the variable
SCRIPT_NAME may include the class name and function name
However the function getUriPath() in Server.php assumes
is not the case and fails.
The solution is simple: replace the line
$basePath = explode('/',$_SERVER['SCRIPT_NAME']);
$basePath = explode('/',$_SERVER['SCRIPT_FILENAME']);
and all works as expected.