Show specific page on the disabled site?

Discussion in 'General' started by David "Fires" Stein, Mar 22, 2023.

  1. David "Fires" Stein

    David "Fires" Stein New Member

    Hello, I have a disabled site, and if I try to access that domain from browser I'm redirected to different webpage (why exactly this webpage I do not know). It is possible to show some custom error page for disabled sites? Thanks
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    It is the first in alphabetic order. More info in the Read before posting -article, the part about wrong website shown.
    I created website named 00aa.mydomain.tld, put there index.html that explains something like "Use httpS instead of http or vice versa, or website does not exist.".
     
  3. David "Fires" Stein

    David "Fires" Stein New Member

    Yes I got this for the ssl. Domain aaaa.website.tld. If I deactivete the site and try to access it via http, I'm redirected to our company website and it is really not the first in alphabet. :)
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please see the read before posting article. It describes the behavior that @Taleman mentioned. Both Apache and Nginx will show the first page site in alphabetic order that is on the same IP and port if they do not find a better match. So if a different site is shown, check which IP they use to find out why the web server considers it as a better match. And take care that your company website is not identical with the server hostname, as this would make it first match as well, that's why the system hostname must always be a subdomain like server1.yourcompany.tld and not yourcompany.tld.
     

Share This Page