You could, alternatively, create a VM on the main server and host the php app on that. But that's a wasteful method, since VMs are redundant if you're only going to use them for one application.
Route or curl's ip bind function are your best options.