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
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.
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!