Catch all website?

Discussion in 'Installation/Configuration' started by brisk, Mar 22, 2018.

  1. brisk

    brisk Member

    In my server, I have hosted a few sites, the first domain or site in apache config is abc dot com.

    I have another domain, www dot mydomain dot com points to another IP (not ispconfig server with all services),
    and I also have mydomain dot com pointed to ispconfig ip. However I do not have a website setup on ISPconfig server.

    when i tried to visit mydomain dot com, browser showed the content of abc dot com.

    Is there a way to tell ISPConfig to not show the first site in apache if the site is not configured in ispconfig? E.g. show a generic page, or just return 404

    thanks
     
  2. brisk

    brisk Member

    really? I always have this problem. what could be the issue? anywhere to check?
     
  3. Taleman

    Taleman Active Member HowtoForge Supporter

    My understanding is Apache shows the first website in alphabetical order in the situation you described. Create a website 0000aaaa.site and that shoud get shown and you can write informative message there. That site does not have to be in name service, even.
     
    ahrasis and till like this.
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Apace will sow the first vhost that listens on the same IP address if no better matching vhost exists. If you want to have a default vhost, then add a new website in ISPconfig with a domain name that is always the first in alphabet, use e.g. '000default.tld' as domain name. The domain does not has to exist in dns.

    update: A few seconds late :) Thanks @Taleman for answering!
     
    ahrasis likes this.
  5. brisk

    brisk Member

    cool will give it a try! Thanks!
     
  6. brisk

    brisk Member

    it worked! thanks
     
    ahrasis likes this.

Share This Page