You’d think Apache’s mass domain support would make it easy to host a group of websites, some of which are owned by various different groups.
For example, I’d expect such support to work in the following style:
# Blah here... DAV support or something...
# or even "DocumentRoot /var/www/*/%2-/%1" if I could be so lucky....
php_admin_value open_basedir /var/www/%2-/
Which is to say, a MassVirtualHost tag which interpolates the requested Host into its arguments, and if DocumentRoot comes out sensibly, returns it. It’d have to come at the end, since Apache takes the first VirtualHost hit it matches, and obviously MassVirtualHost will match anything… (Unless you also allow some syntax for denying??? Oooh, there’s a thought)
OK, I realise Apache 1 doesn’t do this, but I’d have thought by the time they developed Apache2, someone would have noticed this deficiency….
Anyway, the Apache (both 1 and 2!!!) mass virtual domain support lets you interpolate two values… DocumentRoot and ScriptAlias. I mean, really! You can’t even make ServerAdmin default to something sensible… Actually I suspect it does anyway, as long as by sensible I mean webmaster@host….
I wonder if now’s a good time to look at the Apache2 source, and see if it’s even possible to get something like this implemented…
Or maybe over Christmas?