现在用nginx代理uwsgi,每次运行uwsgi后,前台出现500错误,uwsgi日志没体现,后台也不报错,如何查找错误?
认证0级讲师
Configure uwsgi log[uwsgi]daemonize = /var/log/uwsgi.log
Configure nginx logaccess_log /var/log/nginx/access.log;error_log /var/log/nginx/error.log;
The log file needs to be configured. I have a configuration here that uses supervisord to manage uwsgi: stdout_logfile=/opt/log/uwsgi/uwsgi.log
In addition, you need to combine the access and error log of ngingx to see the access situation
This depends on the framework, such as webpy. Regardless of whether you see the debug mode or not, exception information will be output, while flask django must enable debug mode to output exception information.
Configure uwsgi log
[uwsgi]
daemonize = /var/log/uwsgi.log
Configure nginx log
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
The log file needs to be configured. I have a configuration here that uses supervisord to manage uwsgi:
stdout_logfile=/opt/log/uwsgi/uwsgi.log
In addition, you need to combine the access and error log of ngingx to see the access situation
This depends on the framework, such as webpy. Regardless of whether you see the debug mode or not, exception information will be output, while flask django must enable debug mode to output exception information.