1
Failed to load resource: the server responded with a status of 502 ()
chrome-error://chromewebdata/:1
crbug/1173575, non-JS module files deprecated. VM155:6772
查看网页源代码显示一片空白
=======================
cd /etc/nginx/cert
sudo nginx -s reload
sudo /etc/init.d/nginx start
cd
uwsgi --ini scripts/uwsgi.ini
2
Mixed Content: The page at 'https://app1515.acapp.acwing.com.cn/' was loaded over HTTPS,
but requested an insecure XMLHttpRequest endpoint 'http://120.78.237.34:8000/getinfo/?platform=WEB'.
This request has been blocked; the content must be served over HTTPS.
GET https://120.78.237.34:8000/static/image/acwing-logo.png net::ERR_CONNECTION_RESET
=======================
起因:HTTPS页面里动态的引入HTTP资源,比如引入一个js文件,被直接block掉.在HTTPS页面里通过AJAX的方式请求HTTP资源,也被直接block掉。
修改:原本页面的资源链接部分以及ajax里我都是写的ip(http://120.78.237.34:8000),现在那部分改成https://app1515.acapp.acwing.com.cn/就没问题了。
3
重新启动nginx之后打开acapp,只刷出背景图。报错情况如下:
access to xmlhttprequest at ... from origin ... has been blocked by cors policy ...
Error 111 connecting to 127.0.0.1:6379. Connection refused.
=======================
重新启动redis:sudo redis-server /etc/redis/redis.conf
再uwsgi --ini scripts/uwsgi.ini