Apache DAV-SVN (Ubuntu 18.04): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 29: Zeile 29:
<pre>
<pre>
<VirtualHost *:80>
<VirtualHost *:80>
         ServerName svn.<domain>
         ServerName svn.kirner.or.at
         ServerAlias svn.<domain>
         ServerAlias svn.kirner.or.at
         Redirect / https://svn.<domain>
         Redirect / https://svn.kirner.or.at
</VirtualHost>
</VirtualHost>
</pre>
</pre>
Zeile 41: Zeile 41:
<pre>
<pre>
<virtualhost *:443>
<virtualhost *:443>
     ServerName svn.<domain>
     ServerName svn.kirner.or.at


     SSLEngine On
     SSLEngine On

Version vom 20. August 2020, 23:38 Uhr

Noch in Bearbeitung


Installation

sudo apt-get install libapache2-mod-svn

sudo a2enmod dav
sudo a2enmod dav_fs
sudo systemctl restart apache2.service

Konfiguration

Verzeichnis für DavLockDB anlegen:

sudo mkdir /mnt/synology/web1/www/svn
sudo chown www-data:www-data /mnt/synology/web1/www/svn

Port 80 auf 443 weiterleiten:

sudo vi /etc/apache2/sites-available/svn.conf 
<VirtualHost *:80>
        ServerName svn.kirner.or.at
        ServerAlias svn.kirner.or.at
        Redirect / https://svn.kirner.or.at
</VirtualHost>
sudo vi /etc/apache2/sites-available/svn-ssl.conf 
<virtualhost *:443>
    ServerName svn.kirner.or.at

    SSLEngine On
    SSLCertificateFile /etc/ssl/certs/svn.crt
    SSLCertificateKeyFile /etc/ssl/private/apache.key

    DavLockDB /mnt/synology/web1/www/svn/DavLock

    <Location />
        Dav svn
        SVNParentPath /mnt/synology/web1/home/svn/
        SVNListParentPath on
        AuthType Basic
        AuthName "Subversion repository"
        AuthUserFile "/etc/apache2/dav_svn.passwd"
        Require valid-user
    </Location>

    ErrorLog ${APACHE_LOG_DIR}/svn.kirner.or.at-error.log
    CustomLog ${APACHE_LOG_DIR}/svn.kirner.or.at-access.log combined
</virtualhost>


Zurück zu Apache DAV-SVN