Setting a Default Website when no Virtual Host for Domain
I need to reset the default site that is displayed when there is no site configured for a domain (i.e. no entry in the virtual hosts file) but the DNS settings (set on external nameserver) point to any of the ip addresses used on my server. Basically it's when a site is disabled for some reason and I'd like a suitable generic 'holding' page to display.
I don't see anything obvious in httpd.conf.
Thanks in anticipation.
Note to Mod: Sorry, this was first inadvertently posted in the Linux Forum - you may wish to remove from there - my apologies
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
ISPConfig 2 has a default vhost, ist the "Shared IP" page which is shown in case that no corresponding website exists. You can find it in /var/www/sharedip/
Unfortunately this does not work for some reason on my setup. Any domain which is pointed in DNS to my server, resolves to one of the existing websites on the server when that new domain is not setup on the server as a vhost. ???
Recent comments
19 hours 30 min ago
21 hours 19 min ago
1 day 10 hours ago
1 day 15 hours ago
1 day 19 hours ago
1 day 21 hours ago
2 days 11 hours ago
2 days 11 hours ago
2 days 16 hours ago
2 days 23 hours ago