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: 32,071
Thanks: 697
Thanked 4,251 Times in 3,263 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
16 hours 21 min ago
17 hours 21 min ago
21 hours 8 min ago
22 hours 22 min ago
1 day 1 hour ago
1 day 9 hours ago
1 day 18 hours ago
1 day 19 hours ago
2 days 10 hours ago
2 days 13 hours ago