OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: jorgevisentini on January 05, 2023, 02:05:00 PM

Title: OFF TOPIC - Nginx restrict domains
Post by: jorgevisentini on January 05, 2023, 02:05:00 PM
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!
Title: Re: OFF TOPIC - Nginx restrict domains
Post by: muchacha_grande on January 05, 2023, 02:18:04 PM
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.
Title: Re: OFF TOPIC - Nginx restrict domains
Post by: jorgevisentini on January 05, 2023, 03:07:15 PM
Hi, thx for your reply.

Sorry, I dont see this option "Default Server" in the HTTP Server.
Title: Re: OFF TOPIC - Nginx restrict domains
Post by: jorgevisentini on January 10, 2023, 04:03:34 PM
Oh, I need update my version of the nginx / opnsense to view this option.

Thank you for your help!