Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
NGINX后面带有SSL的WSGI_Ssl_Nginx_Pyramid_Wsgi_Pylons - Fatal编程技术网

NGINX后面带有SSL的WSGI

NGINX后面带有SSL的WSGI,ssl,nginx,pyramid,wsgi,pylons,Ssl,Nginx,Pyramid,Wsgi,Pylons,目前我想在服务器上部署我的金字塔应用程序。因此,我在WSGI前面使用NGINX。在NGINX中配置SSL没有问题,但对于WSGI来说却是如此 因为我有从80到443的端口转发,用户收到: Mixed Content: The page at 'https://example.com' was loaded over HTTPS, but requested an insecure stylesheet 'http://example.com/static/css/bootstrap-3.3.5.

目前我想在服务器上部署我的金字塔应用程序。因此,我在WSGI前面使用NGINX。在NGINX中配置SSL没有问题,但对于WSGI来说却是如此

因为我有从80到443的端口转发,用户收到:

Mixed Content: The page at 'https://example.com' was loaded over HTTPS, but requested an insecure stylesheet 'http://example.com/static/css/bootstrap-3.3.5.min.css'. This request has been blocked; the content must be served over HTTPS.
如何为WSGI启用SSL

多亏了我找到了解决办法。只需将url_scheme=https添加到production.ini/development.ini