NGINX Works on Static HTML Pages, but 404 on Wordpress sites

Started by Craash, February 23, 2021, 04:57:26 AM

Previous topic - Next topic
so it seems clearer  :)
so its like
Public Net -> OPN with nginx -> Nginx(with wordpress)?
in this case you dont need all this fastcgi staff on OPN nginx: just servers,locations and upstream to proxy request
(and naxsi to protect WordPress).
in this case error

Logs: *1 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 172.20.0.1, server: fauxsite.com, request: "GET / HTTP/2.0", upstream: "http://172.20.0.105:80/", host: "www.fauxsite.com"

means exactly what is written imho. internal nginx refuses connection from OPN. and if config in https://forum.opnsense.org/index.php?topic=21687.msg102244#msg102244 is actual 172.20.0.105-nginx config, then it should not respond to requests. there is no servers in the config.
Quotehen I first used the server blocks, which worked on pfSense, I was getting a to many redirects error.
it might be due to http-https redirects. hard to tell without configs and errors

Yes.  Public Net -> OPN with nginx -> Nginx(with wordpress) (although a static website too, which works)

Still confused.  I haven't done anything to Nginx outside of OPNsense's GUI.  I think the fastcgi you are talking about is on the ubuntu Nginx.