[SOLVED] Default HTTPS site for IP and non-existent SSL sites

Discussion in 'Installation/Configuration' started by labsy, Dec 19, 2017.

  1. labsy

    labsy Member

    I can handle requests on web server when IP is entered as URL in browser by adding 0000-default.com web site.
    But this does not work in case, when for any existing web sites the https:// is added, when this site has no SSL enabled. In such case the alphabetically first SSL-enabled site is displayed instead. Which is very wrong...or at least very inappropriate.
    Any idea how to direct those https:// requests fro all non-ssl enabled sites to some default page?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Add a new website which is first in alphabet, the domain does not has to exist. use e.g. 000default.tld as domain name. This site will receive all these default requests then.
  3. labsy

    labsy Member

    Hi Till,
    thank you for pointing into right direction. As you say, I already have 0000-default.com configured on all ISPConfig instances, but the problem was HTTPS default page. What I did to solve was now simply configure self-signed SSL for 0000-default.com web site, which now shows properly MY landing page for all non-enabled SSL sites, instead of first customer's SSL web site.
  4. labsy

    labsy Member

    EDIT: Actually, this method worked on my new nginx + PHP-FPM 7 server, while on my old Apache 2 + PHP 5 it does not work.

Share This Page