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

Enable HTTPS for AWS hosted multisite domain (with AWS purchased SSL) on already created Load Balancer?

programmeradmin2浏览0评论

Has anyone with a WP multisite been through this process? I have created the Load Balancer and have a domain (one of the multisite sites) on an EC2 instance.

My load balancer setup looks like this:

Going to just times out and going to just ignores the SSL request. Is there a step I'm missing? Maybe something in httpd.conf or wp-config?

I'm sure someone has gone through something similar, it would help us all dealing with such an issue. I feel like going with WPEngine would've made much more sense than AWS for an simple WP site :(

Has anyone with a WP multisite been through this process? I have created the Load Balancer and have a domain (one of the multisite sites) on an EC2 instance.

My load balancer setup looks like this:

Going to https://foobar just times out and going to https://www.foobar just ignores the SSL request. Is there a step I'm missing? Maybe something in httpd.conf or wp-config?

I'm sure someone has gone through something similar, it would help us all dealing with such an issue. I feel like going with WPEngine would've made much more sense than AWS for an simple WP site :(

Share Improve this question asked Dec 30, 2019 at 15:37 adriftadrift 11 bronze badge 1
  • What are you trying to accomplish? Do these URLs work without the balancers? Are you trying to put different domains on different boxes? Why? – John Dee Commented Dec 30, 2019 at 19:21
Add a comment  | 

1 Answer 1

Reset to default 0

I am familiar with this situation ... I got out of it like this ... To begin with, in the .htaccess file that lies at the root of the site of your hosting provider - I registered it. At the very end of the file.

# END WordPress
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?yoursite\$ [NC]
RewriteCond %{HTTP:X-Forwarded-Proto} !=https
RewriteRule ^(.*) https://yoursite/$1 [R=301,L]

Then I installed the plugin: SSL Insecure Content Fixer. And set the settings in it to “Capture everything” - saved. For two weeks I drove the site with the plugin turned on. Then I deactivated the plugin. And everything became good!

Here is my working example

发布评论

评论列表(0)

  1. 暂无评论