16
Web Proxy Filtering and Caching / Re: NGINX Works on Static HTML Pages, but 404 on Wordpress sites
« on: February 23, 2021, 08:12:24 pm »
I'm a pro at confusion.
The error shows in the log of OPNsense. I should have mentioned that when I first used the server blocks, which worked on pfSense, I was getting a to many redirects error.
My hope is to use NGINX on OPNsense to forward to a NGINX instance on a different machine. OPN sense NGINX has Lets Encrypt SSL certificates and the separate servers are listening on port 80. This different machine houses 1 static html site, and 4 wordpress sites.
I'm hairpining the traffic at this point, as opposed to split DNS, because it is much easier from a zone management aspect with unbound and I don't have to maintain SSL certs on the inside of my network - OPNsense does it all. My pfsense box used HA proxy and split DNS and it all worked. I have 3 servers with one site - these are forwarded correctly, with SSL, from OPNsense. It is just the wordpress sites.
LAN 172.20.0.0/24
OPNsense 172.20.0.254
Web Server 172.20.0.105.
Test client machine 172.20.0.1
The error shows in the log of OPNsense. I should have mentioned that when I first used the server blocks, which worked on pfSense, I was getting a to many redirects error.
My hope is to use NGINX on OPNsense to forward to a NGINX instance on a different machine. OPN sense NGINX has Lets Encrypt SSL certificates and the separate servers are listening on port 80. This different machine houses 1 static html site, and 4 wordpress sites.
I'm hairpining the traffic at this point, as opposed to split DNS, because it is much easier from a zone management aspect with unbound and I don't have to maintain SSL certs on the inside of my network - OPNsense does it all. My pfsense box used HA proxy and split DNS and it all worked. I have 3 servers with one site - these are forwarded correctly, with SSL, from OPNsense. It is just the wordpress sites.
LAN 172.20.0.0/24
OPNsense 172.20.0.254
Web Server 172.20.0.105.
Test client machine 172.20.0.1