Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
OFF TOPIC - Nginx restrict domains
« previous
next »
Print
Pages: [
1
]
Author
Topic: OFF TOPIC - Nginx restrict domains (Read 876 times)
jorgevisentini
Jr. Member
Posts: 75
Karma: 6
OFF TOPIC - Nginx restrict domains
«
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!
Logged
muchacha_grande
Full Member
Posts: 219
Karma: 19
Re: OFF TOPIC - Nginx restrict domains
«
Reply #1 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.
Logged
jorgevisentini
Jr. Member
Posts: 75
Karma: 6
Re: OFF TOPIC - Nginx restrict domains
«
Reply #2 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.
Logged
jorgevisentini
Jr. Member
Posts: 75
Karma: 6
Re: OFF TOPIC - Nginx restrict domains
«
Reply #3 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!
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
OFF TOPIC - Nginx restrict domains