SSL Mixed Insecure Content Error after Update

[ad_1]

Hi everyone,

my current setup involves wordpress + nginx, both of them on separate dockers containers.

I recently upgraded my wordpress instance from version 4.9 with PHP 7.2 to version 6.0.3 with PHP 8.1.

In the new instance of wordpress, I imported the previous configuration exported with the [All-in-One WP Migration]) plugin.

*Let’s say that* [*EXAMPLE.com*]) *is my target domain.*

I then set the two variables WP\_HOME and WP\_SITEURL in the wp-config.php file so to match the previous configuration: “[http://EXAMPLE.com](http://EXAMPLE.com)”

Nginx settings haven’t changed. Here’s my /etc/nginx/sites-enabled/default configuration:

server {
server_name EXAMPLE.com;
add_header Strict-Transport-Security “max-age=31536000; includeSubDomains” always;

location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass ;
}

listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/EXAMPLE.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/EXAMPLE.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}

server {
if ($host = itsnotdata.com) {
return 301 https://$host$request_uri;
} # managed by Certbot

listen 80;
server_name itsnotdata.com;
return 404; # managed by Certbot

}

[http://192.168.74.4:10096]) is where the wordpress instance lies inside the local network and it’s exposed through nginx reverse proxy.

I keep getting this SSL Mixed Insecure Content Error in the browser. When I set the variables WP\_HOME and WP\_SITEURL in the wp-config.php file with HTTPS instead of simple HTTP, I am able to get a full secure delivery of content, but the admin panel is not reachable anymore. Apparently some kind of redirect loop happens.

I’m not sure about how this should be handled, and/or/if DNS records should be modified as well. Thank you everyone for your help.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer