我只收到来自django管理页面的特定请求 大数据
wsgi.conf文件
WSGIPassAuthorization On
#Header set Access-Control-Allow-Origin "*"
WSGIScriptAlias / /home/ubuntu/ezstage.wsgi
WSGIDaemonProcess localhost processes=4 threads=30 display-name=%{GROUP}
WSGIProcessGroup localhost
WSGIApplicationGroup %{GLOBAL}
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
LogLevel debug
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /static /home/ubuntu/criterioncloudez/static/
#Alias /static/admin /usr/local/lib/python2.7/dist-packages/django/contrib/admin/static/admin/
<Directory /home/ubuntu>
AllowOverride All
Require all granted
</Directory>
<Location "/static/">
Options -Indexes
</Location>
ezstaze.wsgi文件
import os
import sys
import site
prev_sys_path = list(sys.path)
site.addsitedir('/usr/local/lib/python2.7/site-packages')
sys.path.append('/home/ubuntu/criterioncloudez');
os.environ['DJANGO_SETTINGS_MODULE'] = 'project.settings'
sys.path.extend([
'/usr/local/lib/python2.7/site-packages',
'/usr/local/lib/python2.7/site-packages/django/contrib/admindocs',
])
new_sys_path = [p for p in sys.path if p not in prev_sys_path]
for item in new_sys_path:
sys.path.remove(item)
sys.path[:0] = new_sys_path
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
'''
错误: [Mon Aug 31 05:23:47.955596 2020] [authz_core:debug] [pid 31414] mod_authz_core.c(802):[客户端117.216.179.95:15666] AH01626:要求全部授予的授权结果:已授予 [2020年8月31日星期一05:23:47.955647] [authz_core:debug] [pid 31414] mod_authz_core.c(802):[客户端117.216.179.95:15666] AH01626:的授权结果:已授予 [Mon Aug 31 05:23:47.962028 2020] [authz_core:debug] [pid 31414] mod_authz_core.c(802):[客户端117.216.179.95:15666] AH01626:要求全部授予的授权结果:已授予 [2020年8月31日星期一05:23:47.962047] [authz_core:debug] [pid 31414] mod_authz_core.c(802):[客户端117.216.179.95:15666] AH01626:授权结果为:授予
[Mon Aug 31 05:23:53.466137 2020] [core:error] [pid 31414] [client 117.216.179.95:15666]在标头之前的脚本输出结束:ezstage.wsgi
在Django应用程序中的apache2和wsgi上运行 版本 uSWGI -2.0.19 Django -1.11