On Thu, Mar 10, 2011 at 9:09 PM, Ryan Schmidt
<subversion-20...@ryandesign.com> wrote:
> On Mar 10, 2011, at 15:17, Daniel F. Garcia wrote:
>
>> This is a good solution, but I have 2 additional requirements
>> * I have >100 subdomains and I want to save time setting them up (ok, I 
>> could script this)
>> * I need to be able to add subdomains without restarting apache
>>
>> The 2nd requirement is why I used the *.mydomain.com alias and used the 
>> SVNParentPath directive.
> Sorry, Daniel, I don't know a way to accomplish all those objectives. The 
> only options Subversion provides are:

Symlinks to locally accessible filesystems works pretty well,
especially if you put them in /var/www/svn/ and configure
appropriately. That lets you enable and disable repositories with a
single symlink change.

>
>  * SVNPath: host a single repository at a URL
>  * SVNParentPath: host multiple repositories under a parent URL
>
> There is no provision for using SVNParentPath with the repository name coming 
> from the hostname, only from a directory component in the URL.
>
> You cannot use mod_rewrite or similar to fake this. Subversion clients do not 
> follow HTTP redirects.
>
> 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.
>
>
>
>

Reply via email to