- 积分
- 51
- 威望
-
- 金钱
-
- 注册时间
- 2017-11-5
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
本帖最后由 Tearth 于 2019-5-14 22:47 编辑
请教一下关于wordpress负载均衡后HTTPS的配置。这里配置了两个后端服务器,代理服务器server_name为wp.com。配置好,重启nginx,在浏览器访问wp.com,HTTP完全正常;使用HTTPS访问的时候会出现 Mixed Content 这样的错误。网上已经查过资料了,没有适用的教程。麻烦问下这里应该怎么配置
配置文件如下:
- (index):14 Mixed Content: The page at 'https://wp.com/' was loaded over HTTPS, but requested an insecure script 'http://wp.com/wp-includes/js/wp-emoji-release.min.js?ver=5.0.3'. This request has been blocked; the content must be served over HTTPS.
- f @ (index):14
- (anonymous) @ (index):14
- (anonymous) @ (index):14
- (index):30 Mixed Content: The page at 'https://wp.com/' was loaded over HTTPS, but requested an insecure stylesheet 'http://wp.com/wp-includes/css/dist/block-library/style.min.css?ver=5.0.3'. This request has been blocked; the content must be served over HTTPS.
- (index):31 Mixed Content: The page at 'https://wp.com/' was loaded over HTTPS, but requested an insecure stylesheet 'http://wp.com/wp-includes/css/dist/block-library/theme.min.css?ver=5.0.3'. This request has been blocked; the content must be served over HTTPS.
- (index):32 Mixed Content: The page at 'https://wp.com/' was loaded over HTTPS, but requested an insecure stylesheet 'http://wp.com/wp-content/themes/twentynineteen/style.css?ver=1.2'. This request has been blocked; the content must be served over HTTPS.
- (index):33 Mixed Content: The page at 'https://wp.com/' was loaded over HTTPS, but requested an insecure stylesheet 'http://wp.com/wp-content/themes/twentynineteen/print.css?ver=1.2'. This request has been blocked; the content must be served over HTTPS.
- (index):89 Mixed Content: The page at 'https://wp.com/' was loaded over a secure connection, but contains a form that targets an insecure endpoint 'http://wp.com/'. This endpoint should be made available over a secure connection.
- (index):1 Mixed Content: The page at 'https://wp.com/' was loaded over HTTPS, but requested an insecure script 'http://wp.com/wp-includes/js/wp-embed.min.js?ver=5.0.3'. This request has been blocked; the content must be served over HTTPS.
复制代码
|
|