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,248 Times in 3,260 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
2 hours 18 min ago
3 hours 18 min ago
7 hours 5 min ago
8 hours 19 min ago
11 hours 55 min ago
19 hours 10 min ago
1 day 4 hours ago
1 day 5 hours ago
1 day 20 hours ago
1 day 23 hours ago