On Mar 10, 2011, at 20:19, Daniel F. Garcia wrote: >> The only way I know to accomplish the functionality you want is to define >> each subdomain as its own VirtualHost, either manually or via a script you >> write. >> You will have to restart Apache when making changes, though a graceful >> restart shouldn't impact you too much. > > My apache server runs other things, and I'm worried I'll lose php session > state in the restart. I'll test it and see what happens.
Hmm. PHP sessions are by default stored in files, or you can use any number of other session handlers including database. I would think neither of those would go away with an Apache restart, but testing it is a good idea. > Last night I had a go at modifying mod_dav_svn to do what I want, but my > changes weren't working very well. > > Google code use a similar structure. For example the yii code is under > http://yii.googlecode.com/svn. If I had to guess I'd say they are probably > using a layer 4-7 switch or something. Google is running a highly-customized version of Subversion anyway. They even wrote a custom backend repository storage layer.