Fix nginx config to avoid displaying 502