Configuring Name-Based Virtual Hosts

Discussion in 'General' started by Indieben, Mar 31, 2018.

  1. Indieben

    Indieben Member

    Hi there,

    I'm working with a website that needs to be accessible on the web in its usual way and it has a domain for access from the outside world. Secondly, it needs to be accessible through an internet Wifi network that is locked down solely to allow access to this website. So far, an internal IP address has been dedicated to the website itself that has allowed the configuration of OpenWRT firewall rules to lock down access over the wifi network to this one website whilst not affecting normal access over the internet.

    The issue that I am left with is that, if somebody logs into this wifi, whilst typing an ip address or an FQDN will redirect them, typing in a random word such as "forum" won't. A kindly chap has been helping me with this but he has not used ispconfig before so the question he asks in relation to this is:

    How do I go about configuring name-based virtual hosts in a way that generates a HTTP Redirect to reply for everything but "" and "" please?

    The intention is to trigger iPhone captive portal detection this way.

    This must not affect any other website hosted on ispconfig though.

    Thanks :)
    Last edited: Mar 31, 2018
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    It sounds like you just need to setup the server's default website to do the redirect, though I'm not familiar with any specifics that 'iPhone captive portal detection' may have.
  3. Indieben

    Indieben Member

    Thanks for your reply Jesse - the project didn't work out in the end so it's back to the drawing board :eek:

Share This Page