Isso deve funcionar:
server {
server_name alianza.quehambre.cl;
location / {
location ~ ^/(api|get)/(.*) {
# Whatever should happen at this point...
}
try_files $uri /index.php/get/$request_uri =404;
}
}