Forum Moderators: phranque

Message Too Old, No Replies

VirtualDocumentRoot fallback for mass virtual hosting set up

VirtualDocumentRoot fallback for mass virtual hosting set up

         

stevegsmith

12:19 pm on Jun 8, 2005 (gmt 0)



I have Apache set up for mass virtual hosting using the commands:

VirtualDocumentRoot /var/www/%0
VirtualScriptAlias /var/www/%0/cgi-bin

And then setting up sym links in /var/www for each URL.

The problem is that I have many domains/URLS pointing to the server that are not for live site and I have therefore, and dont want to, not set up sym links for the.

But I would like them to point to a default page, Is there any way I can configure apache that if a sym link does not exisit it loads a default page?