Ok, um bom rapaz me ajudou com isso. Aqui está a configuração de trabalho:
location /v2 {
alias /home/example/api/v2/web;
try_files $uri $uri/ /v2/index.php;
location ~* \.(js|css|less|png|jpg|jpeg|gif|ico|woff|ttf|svg|tpl)$ {
root /home/example/api/v2/web;
expires 24h;
access_log off;
}
location ~* /(.*) {
include /etc/nginx/fastcgi_params;
fastcgi_index index.php;
fastcgi_pass php56;
fastcgi_param SCRIPT_FILENAME /home/example/api/v2/web/index.php;
fastcgi_param SCRIPT_NAME /v2/index.php;
}
}