You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Johan Chaves Saborío <jo...@gmail.com> on 2007/02/26 19:42:04 UTC

Subversion, Apache and VirtualHosts

Hi,

We are having some problems with our subversion installation, particularly
with de COPY method.

Reading the svn-book it seems an apache configuration problem related to
virtual hosts and the server name.

Can anybody point me to a configuration example using apache2 and virtual
hosts?

Re: Subversion, Apache and VirtualHosts

Posted by Johan Chaves Saborío <jo...@gmail.com>.
Here goes our configuration, subversion is working fine but when I try do
make a COPY I get the following error:

COPY of file.name: 400 Bad Request(https://svn.my.host)

Under Debian:

****** /etc/apache2/sites-available/svn.my.host ******

<VirtualHost *:443>
        #Activate SSL
        SSLEngine on

        #certificado
        SSLCertificateFile /etc/apache2/ssl/server.crt
        SSLCertificateKeyFile /etc/apache2/ssl/server.key

        #VirtualHost Servername
        ServerAdmin localhost@svn.my.host
        ServerName svn.my.host

        #DocumentRoot /var/www/apache2-default/
        DocumentRoot /home/repositorio

        <Location />
                DAV svn

                #Subversion
                SVNParentPath /home/repositorio/svn/
                SVNListParentPath On
                SVNAutoVersioning On

               #Authentication
                AuthType Basic
                AuthName "subversion"
                AuthUserFile /home/repositorio/.htpasswd
                Require valid-user
        </Location>

        #crear log de svn en /var/log/apache2/
        CustomLog /var/log/apache2/svn_logfile "%t %u %{SVN-ACTION}e"
env=SVN-A
        #fin crear log de svn

        <LocationMatch "/.+">
                #Subversion permission file
                AuthzSVNAccessFile /home/repositorio/svn/.htpasswd
        </LocationMatch>
</VirtualHost>






On 2/26/07, Matt Sickler <cr...@gmail.com> wrote:
>
> A better way to get it solved would be to post your and the relevant error
> messages so we can help you fix it.
>
> On 2/26/07, Johan Chaves Saborío < johann04@gmail.com> wrote:
> >
> > Hi,
> >
> > We are having some problems with our subversion installation,
> > particularly with de COPY method.
> >
> > Reading the svn-book it seems an apache configuration problem related to
> > virtual hosts and the server name.
> >
> > Can anybody point me to a configuration example using apache2 and
> > virtual hosts?
> >
>
>

Re: Subversion, Apache and VirtualHosts

Posted by Matt Sickler <cr...@gmail.com>.
A better way to get it solved would be to post your and the relevant error
messages so we can help you fix it.

On 2/26/07, Johan Chaves Saborío <jo...@gmail.com> wrote:
>
> Hi,
>
> We are having some problems with our subversion installation, particularly
> with de COPY method.
>
> Reading the svn-book it seems an apache configuration problem related to
> virtual hosts and the server name.
>
> Can anybody point me to a configuration example using apache2 and virtual
> hosts?
>