[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: configure Virtual host

From: Helio MC Pereira <helio.mc.pereira_at_gmail.com>
Date: 2006-01-27 17:37:45 CET

sorry two posts :P
how can I configure vhost to assume <USER> for each request?
ex.:
http://projects.server.test/user1/svn -> <USER> == user1
http://projects.server.test/user2/svn -> <USER> == user2

<VirtualHost *:80>
    ServerName projects.server.test
    ServerAlias projects
    ServerAdmin sharkypt@gmail.com
    ErrorLog /var/log/apache2/projectos-codezone-error.log
    CustomLog /var/log/apache2/projectos-codezone-access.log combined

    <Location "/svn">
        DAV svn
        SVNPath /home/<USERS>/svn
        AuthType Basic
        AuthName "Projects @ CodeZone"
        AuthUserFile /home/<Users>/svn/dav/svn.passwd

        <Limit GET PROPFIND OPTIONS REPORT>
            Require valid-user
        </Limit>

        #SSLRequireSSL
    </Location>
</virtualHost>

2006/1/27, Helio MC Pereira <helio.mc.pereira@gmail.com>:
>
> Hi,
>
> I'm new to Subversion and my english is not very well :P
>
> I'm trying to configure apache with a virtual host for multiple
> subversion repositorys. Each repository is under /home/user/svn directory
> like:
>
> /home/user1/snv
> /home/user2/snv
> ...
>
> Each user need to mantain the svn repository.
>
> How do I configure virtual host for all to points something like
> http://projects.server.test/user/svn ???
>
>
> <VirtualHost *:80>
> ServerName projects.server.test
> ServerAlias projectos
> ServerAdmin sharkypt@gmail.com
> ErrorLog /var/log/apache2/projectos-codezone-error.log
> CustomLog /var/log/apache2/projectos-codezone-access.log combined
>
> <Location "/svn">
> DAV svn
> SVNPath /home/Projectos/Portal/svn
> AuthType Basic
> AuthName "Projecto Portal @ CodeZone"
> AuthUserFile /home/Projectos/Portal/svn/dav/svn.passwd
>
> <Limit GET PROPFIND OPTIONS REPORT>
> Require valid-user
> </Limit>
>
> #SSLRequireSSL
> </Location>
> </virtualHost>
>
>
Received on Fri Jan 27 17:48:27 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.