Django网络错误(tcp_error)

时间:2017-06-20 09:55:57

标签: python django apache

我正在使用django-admin,但我一直收到这个回复标题:

Connection:keep-alive
Content-Length:0
Content-Type:text/html
Date:Tue, 20 Jun 2017 09:53:32 GMT
ETag:"56138860-0"
X-Content-Type-Options:nosniff
X-Frame-Options:SAMEORIGIN
X-XSS-Protection:1; mode=block

Request URL:http://52.43.93.333/real-admin-interface-2017/mooimom_id/product/85/change/?_changelist_filters=o%3D-1
Request Method:POST
Status Code:503 Service Unavailable
Remote Address:52.43.93.333:80
Referrer Policy:no-referrer-when-downgrade

和这个前端输出

Network Error (tcp_error) 

A communication error occurred: "Operation timed out"
The Web Server may be down, too busy, or experiencing other problems 
preventing it from responding to requests. You may wish to try again at a later time.

For assistance, contact your network support team.

我正在使用Apache,Ubuntu和AWS。我的RDS是外部AWS机器(不是同一台EC2机器)。我已经在apache.conf中将Timeout更改为999并将KeepAliveTimeout更改为15,但是我仍然只为少数要保存大量数据的对象保留此错误。

apache.conf中的apache

的mod_WSGI 000-default.conf设置
<VirtualHost *:80>
Alias /media/ /var/www/mooimom_django/media_root/
Alias /static/ /var/www/mooimom_django/static/

<Directory /var/www/mooimom_django/static>
Require all granted
</Directory>

<Directory /var/www/mooimom_django/media_root>
Require all granted
</Directory>

 WSGIDaemonProcess mooimom_django python-path=/var/www/mooimom_django:/var/www/mooimom_django/env/lib/python2.7/site-packages
 WSGIProcessGroup mooimom_django
 WSGIScriptAlias / /var/www/mooimom_django/mooimom_django/wsgi.py

 ErrorLog ${APACHE_LOG_DIR}/error.log
 CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

0 个答案:

没有答案
相关问题