最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

https - Wordpress behind Proxy - Mixed Content

programmeradmin1浏览0评论

My Server Env for a wordpress site is as follows:

----------               ---------              -------------
| Client | <-- HTTPS --> | Proxy | <-- HTTP --> | Wordpress |
----------               ---------              -------------

The Problem is that the Wordpress Site itself is served internally over HTTP but the Client communicates over HTTPS with the Proxy. Since Wordpress is configured with HTTP it returns links and images-src with "http://" which leads to mixed-content errors in the browsers. (Eg. all css / script links generated by wp_head() return http:// urls)

Can i configure Wordpress to generate only "https://" urls, even if it's serverd over HTTP?

Wordpress runs on nginx webserver
The Proxy is also nginx

My Server Env for a wordpress site is as follows:

----------               ---------              -------------
| Client | <-- HTTPS --> | Proxy | <-- HTTP --> | Wordpress |
----------               ---------              -------------

The Problem is that the Wordpress Site itself is served internally over HTTP but the Client communicates over HTTPS with the Proxy. Since Wordpress is configured with HTTP it returns links and images-src with "http://" which leads to mixed-content errors in the browsers. (Eg. all css / script links generated by wp_head() return http:// urls)

Can i configure Wordpress to generate only "https://" urls, even if it's serverd over HTTP?

Wordpress runs on nginx webserver
The Proxy is also nginx

Share Improve this question asked Mar 16, 2017 at 13:03 SebastianSebastian 1431 gold badge1 silver badge5 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 3

Please take a look at Administation Over SSL, particularly the "Using a Reverse Proxy" section.

What about using a Force SSL plugin like this one?

发布评论

评论列表(0)

  1. 暂无评论