Bad gateway is nginx error for bad FastCGI. cannot connect to fpm basically.
I have also noticed that it doesn't happen right away, meaning after I turn on VBop. the forum runs fine ... but after few clicks, replies and goofing around for a bit nginx stops passing php properly hence the error...