Strange behaviour when a site is disabled

Discussion in 'ISPConfig 3 Priority Support' started by kaostc, Feb 10, 2025.

  1. kaostc

    kaostc Member HowtoForge Supporter

    In one of my servers (an slave) when a site is disabled it throws a cerfiticate error and the redirects to adnitt.eu (the first site in this server alphabetically). What could be the problem? In my other servers when a server is disabled it simply returns the nginx welcome page.
    Thanks!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. kaostc

    kaostc Member HowtoForge Supporter

    Uuups, sorry not to read this carefully before.
    My configuration uses NGINX but I guess it has the same fallback default behaviour. Can this be overriden? I have made some searchs but cannot find anything, I guess because I am not choosing the adequate search terms.
    Also, I don't have disabled https on the site, but the whole site... Does ISPConfig just disable https?

    Thanks!
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    No, you can not override that, that's the way Nginx and Apache work. If they can not find a matching vhost, they use the first one they find on the same IP and port. What you can do, though, is to create a website with a domain name that's always first in the alphabet, like '000default.tld', and create a self-signed SSL cert for it. This domain name does not have to exist in DNS, it just must be the first site in alphabet on this server. This site will then catch all requests that have no better match.
     
    Turgut Kalfaoglu likes this.
  5. kaostc

    kaostc Member HowtoForge Supporter

    Done!
    Thanks for your help.
     

Share This Page