Flask app running with gunicorn and nginx is crashing at redirecting point
问题 Can you please help? I am stuck. My server is crashing at @return redirect(url_for(‘login’)) ,when I run it using gunicorn i.e. $gunicorn — bind 127.0.0.1:5000 -w 4 wsgi:app. Same issue arises when I run it using supervisor. The code is working fine when I run it normally i.e. python app.py Appreciate any suggestions. 回答1: Try using this config, might help you. Create a new file in /etc/nginx/sites-enabled/ server { listen 80 ; server_name abc.com; large_client_header_buffers 8 32k; if ($http