【发布时间】:2016-01-28 17:34:30
【问题描述】:
我在我的烧瓶应用程序中使用以下错误处理程序
@app.errorhandler(413)
def error413(e):
return render_template('error413.html'), 413
如果发生错误 413(文件大小太大),则会显示错误页面。这在我的本地主机上运行良好,但在服务器上我得到了 nginx 413 错误页面。
413 Request Entity Too Large
nginx/1.4.6 (Ubuntu)
在错误处理方面,nginx 服务器和 localhost 有什么不同吗? 我将gunicorn与nginx一起使用...... 谢谢 卡尔
【问题讨论】: