OPNsense
  • 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 886 times)

jorgevisentini

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 6
    • View Profile
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
    • View Profile
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
    • View Profile
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
    • View Profile
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
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2