Long story short, I'm running openvpn access server and I'm using nginx to proxy vpn.mydomain.com to mydomain.com:443
I want everything else to go to 404.
I'm not sure what I'm doing wrong here, but everything just goes to the proxy_pass.
https://vpn.mydomain.com goes to my OpenVPN Access server fine
https://mydomain.com also goes to the same place. I don't want that. I want it to 404.
here is the config (modified for privacy)
May goal here is to learn how to use nginx. I'm not sure I fully undertand these server blocks. Can somone give me some pointers?
Thanks.
ubuntu server 16.04 kernel 4.13
nginx 1.12.1 (ubuntu)
