When I try to access a non-existing route or make a mistake inside a Twig template, instead of getting the Symfony error page with debug information, I get redirected to a d
You may also try to disable ChromePHP at app/config/config_dev.yml
Just comment out these lines:
chromephp:
type: chromephp
level: info
This plugin generates a large header and forces nginx to response with 502 Bad Gateway.
More info at:
https://github.com/symfony/symfony/issues/8413
Enable Debug Component in Symfony 2.3