OFF TOPIC - Nginx restrict domains

Started by jorgevisentini, January 05, 2023, 02:05:00 PM

Previous topic - Next topic
Hi guys.

So... this is not directly about OPNsense, but about NGINX.

I set up a reverse proxy for my website (www.domain.com), but strangely enough, it is accepting any sub-domain (dev.domain.com, xxx.domain.com).

How do I strictly restrict it to only accepting www.domain.com?

Happy new year for all of us!

Hi jorgevisentini, if you check "Default Server" in de HTTP server configuration, it will use that server whatever URL is used to get to your IP.

Hi, thx for your reply.

Sorry, I dont see this option "Default Server" in the HTTP Server.

Oh, I need update my version of the nginx / opnsense to view this option.

Thank you for your help!