Magic Apache Development Platform

Great bit of magic there.

One question. How do you magic the DNS for the new domains? Do you have Bind set up with wildcard entries in the zone or what?

It\’s a really nice trick and I\’ve got it working on my local machine for development. I have only one question:

When I use the VirtualDocumentRoot directive the PHP $_SERVER[\’DOCUMENT_ROOT\’] defaults to the global DocumentRoot defined in http.conf. Is there any way I could make $_SERVER[\’DOCUMENT_ROOT\’] the same as VirtualDocumentRoot so that my websites work properly (CodeIgniter for example uses DOCUMENT_ROOT) ?