I just added:
location /forums/api {
try_files $uri $uri/ /forums/api/index.php;
}
Now it just seems the API is broken, the key is correctly passed to the script (even checked by echoing the $rawApiKey variable), it just throws an exception:
curl http://localhost/forums/api/core/hello --user test:
{
"errorCode": "3S290\/7",
"errorMessage": "INVALID_API_KEY"
}
curl http://localhost/forums/api/core/hello
{
"errorCode": "2S290\/6",
"errorMessage": "NO_API_KEY"
}