Servidor SVN con Apache2

Holas,

Pues desde hace mucho tiempo quiero tener todo organizado… lejos de ello, pero al menos centrando el trabajo me he puesto a crearme un repositorio SVN con acesso vía web gracias a Apache2:

# Directorio para los repos

mkdir -p /var/local/repos

# Crear el repo

svnadmin create /var/local/repos

# doy permisos al servidor web

chown -R www-data:www-data /var/local/repos

# instalo el modulo de apache necesario

apt-get install libapache2-svn

# editar el archivo: /etc/apache2/mods-available/dav_svn.conf y escribe:

<Location /repos>
DAV svn

SVNPath /var/local/repos

AuthType Basic

AuthName “Subversion repository”

AuthUserFile /etc/subversion/passwd

<LimitExcept GET PROPFIND OPTIONS REPORT>

Require valid-user
</LimitExcept>
</Location>

# agrega usuarios:
htpasswd -c /etc/subversion/passwd daniel

# reinicia apache:

/etc/init.d/apache2 restart

enjoy! :-)

Advertisement

Sin comentarios aún

Deja un comentario

Fill in your details below or click an icon to log in:

Logo de WordPress.com

You are commenting using your WordPress.com account. Log Out / Cambiar )

Twitter picture

You are commenting using your Twitter account. Log Out / Cambiar )

Facebook photo

You are commenting using your Facebook account. Log Out / Cambiar )

Connecting to %s

Seguir

Get every new post delivered to your Inbox.