location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location / {
rewrite ^/v1/(.*)$ /v1.php last;
rewrite ^/v2/(.*)$ /v2.php last;
rewrite ^(/resources/.*)$ $1 break;
}