Using Nginx as a tansparent proxy

November 18, 2021 - Reading time: ~1 minute

https://stackoverflow.com/questions/29980884/proxy-pass-does-not-resolve-dns-using-etc-hosts

https://cmdln.org/2009/07/12/transparent_dynamic-reverse-proxy-with-nginx/

https://docs.nginx.com/nginx/admin-guide/web-server/

https://www.linode.com/docs/guides/beginners-guide-to-lxd-reverse-proxy/

https://www.linode.com/community/questions/3220/how-to-install-nginx-as-a-reverse-proxy-for-apache2

Digital Ocean, setting up a Nginx container and forwarding from host to it https://www.digitalocean.com/community/tutorials/how-to-set-up-and-use-lxd-on-ubuntu-18-04

I have found out the hard way, Nginx requires you to have any ssl websites configured last in the "/etc/nginx/conf.d/*.conf" files as Nginx reads from the top down and if it sees a "Listen 443 ssl;" then it switches to ssl and will not switch back to port 80 for subsequent servers.

LazyCoderOZ

I am a Linux guy, been around for 20+ years using Linux as my daily driver.
This is my blog on my discoveries and notes so I don't forget how I have done things :)