Partial redirect and mixed content errors

[ad_1]

I have a WP page that I’m not treating well. I can get the page to load with Mixed content errors.
And I cannot get to the admin page as that page gets stuck in a redirect loop as soon as I change the home and siteurl address to the domain name. I’m pretty sure both are problems with my configuration files.

The domain points to an AWS address where ubuntu server is running Haproxy. SSL is terminated at this point, traffic is then sent through a Wireguard tunnel to a nginx reverse proxy. The WP site is served at this location.

Appreciate any tips, thank you!

haproxy.cfg

global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
user haproxy
group haproxy
daemon
defaults
mode http
log global
option httplog
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
frontend example1.com
bind :80
bind :443 ssl crt /etc/letsencrypt/live/example1.com/haproxy.pem
mode http
option httplog
http-request set-header X-Forwarded-For %[src] http-request redirect scheme https unless { ssl_fc }
use_backend example1.com if { req.hdr(host) -i example1.com }
default_backend example1.com
backend example1.com
balance roundrobin
server server1 10.10.10.3:80
backend example2.org
balance roundrobin
server server2 10.10.10.2:80

sites-available/example1.com

server {
root /srv/www/example1.com/wordpress;
index index.php index.html index.htm index.nginx-debian.html;
listen 80 default_server;
server_name example1.com www.example1.com;
access_log /var/log/nginx/example1.com.access.log;
error_log /var/log/nginx/example1.com.error.log;
set_real_ip_from 10.10.10.0/24;
real_ip_header X-Forwarded-For;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
}
}

[ad_2]
1 Comment

 

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