Fix 502 Bad Gateway when running on nginx (remove die() at the end redirect).