1
Web Proxy Filtering and Caching / NGINX Reverse Proxy using subdomains only?
« on: August 07, 2021, 12:49:04 am »
Hi, I have a bunch of subdomains that I wish to redirect to their respective LAN servers using NGINX.
I set the HTTP servers according to the post here: https://forum.opnsense.org/index.php?topic=19305.0
Everything seems to be find except if I enter my domain (eg. domain.com) instead of the subdomain (eg. subdomain1.domain.com), it uses the the first location that I have created.
Question is, how do I set it so that it only directs the subdomain traffic and ignore all requests to my domain?
I set the HTTP servers according to the post here: https://forum.opnsense.org/index.php?topic=19305.0
Everything seems to be find except if I enter my domain (eg. domain.com) instead of the subdomain (eg. subdomain1.domain.com), it uses the the first location that I have created.
Question is, how do I set it so that it only directs the subdomain traffic and ignore all requests to my domain?