Home > Uncategorized > Instalando Subversion en Apache bajo Xubuntu

Instalando Subversion en Apache bajo Xubuntu

April 18th, 2009

Para manejar proyectos locales es importante usar un repositorio de codigo que maneje versionado, lamentablemente cada distribucion maneja esta instalacion de formas muy particulares.

Para ejecutar este tema bajo Xubuntu se realizaron los siguientes pasos.

  1. Sudo -s <— asi no tenemos q estar haciendo sudo todo el tiempo
  2. instalar paquetes apache subversion apache-svn
  3. Activar SSL:
    1. a2enmod ssl
    2. por defecto Apache ya contempla el puerto 443 en caso el modulo ssl este activo.
  4. Generar Certificado:
    1. install ssl-cert
    2. mkdir /etc/apache2/ssl
    3. /usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem
  5. Crear Host Virtual

    1. cp /etc/apache2/sites-available/default /etc/apache2/sites-available/repos
    2. mousepad /etc/apache 2/sites-available/repos

      1. cambiar :

        1. <VirtualHost *:80> a <VirtualHost *:443>
      2. agregar:
        1. SSLEngine on
        2. SSLCertificateFile /etc/apache2/ssl/apache.pem
        3. SSLProtocol all
        4. SSLCipherSuite HIGH:MEDIUM
  6. activar el sitio

    1. a2ensite repos
    2. /etc/init.d/apache2 restart
  7. agregando repositorios
    1. la siguiente configuracion asume que queremos hostear varios repositorios
      1. mkdir /var/svn
      2. svnadmin create /var/svn/repos
      3. chown -R www-data:www-data /var/svn/repos
      4. chmod -R g+ws /var/svn/repos
  8. agregando autenticacion basica
    1. htpasswd -c -m /etc/apache2/dav_svn.passwd svnuser
  9. activar y configurar WebDav en SVN
    1. agregar a /etc/apache2/mods-available/dav_svn.conf
      1. DAV svn
      2. SVNParentPath /var/svn
      3. AuthType Basic
      4. AuthName “repositorio Subversion”
      5. AuthUserFile /etc/apache2/dav_svn.passwd
      6. Require valid-user
      7. SSLRequireSSL
    2. y por acceso no anonimo comentar
      1. # <LimitExcept GET PROPFIND OPTIONS REPORT>
      2. # </LimitExcept>
  10. /etc/init.d/apache2 restart

y Listo!
traduccion libre de Aleph Zarro

Author: xapiens Categories: Uncategorized Tags: , , ,
  1. October 1st, 2009 at 23:36 | #1

    CIA

    “Boris Korczak was a CIA Agent in the 1970’s. He was a double agent infiltrated the KGB for the United States. He was exposed by an American official, had to flee for his life yet the CIA turned it’s back on him refusing him any help. Their hope was that the KGB would kill him.”

    Boris Korczak Ex Double Agent

    http://www.boriskorczak.com

Comments are closed.