Apache DAV-SVN (Ubuntu 18.04): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(6 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
== Installation == | == Installation == | ||
Zeile 13: | Zeile 10: | ||
== Konfiguration == | == Konfiguration == | ||
Zertifikat siehe [[SSL_Zertifikat]] | |||
=== Passwort-Datenbank anlegen === | |||
Falls die Datenbank noch nicht existiert, ist der Parameter ''-c'' erforderlich. | |||
<pre> | |||
sudo htpasswd /etc/apache2/dav_svn.passwd <user name> | |||
</pre> | |||
=== DavLockDB === | |||
Verzeichnis für ''DavLockDB'' anlegen: | Verzeichnis für ''DavLockDB'' anlegen: | ||
<pre> | <pre> | ||
sudo mkdir / | sudo mkdir /mnt/synology/web1/www/svn | ||
sudo chown www-data:www-data / | sudo chown www-data:www-data /mnt/synology/web1/www/svn | ||
</pre> | </pre> | ||
==== Links ==== | |||
[https://httpd.apache.org/docs/2.4/mod/mod_dav_fs.html https://httpd.apache.org/docs/2.4/mod/mod_dav_fs.html] | |||
=== svn.conf === | |||
<pre> | <pre> | ||
Zeile 29: | Zeile 42: | ||
<pre> | <pre> | ||
<VirtualHost *:80> | <VirtualHost *:80> | ||
ServerName svn. | ServerName svn.kirner.or.at | ||
ServerAlias svn. | ServerAlias svn.kirner.or.at | ||
Redirect / https://svn. | Redirect / https://svn.kirner.or.at | ||
</VirtualHost> | </VirtualHost> | ||
</pre> | </pre> | ||
=== svn-ssl.conf === | |||
<pre> | <pre> | ||
Zeile 41: | Zeile 56: | ||
<pre> | <pre> | ||
<virtualhost *:443> | <virtualhost *:443> | ||
ServerName svn. | ServerName svn.kirner.or.at | ||
SSLEngine On | SSLEngine On | ||
Zeile 47: | Zeile 62: | ||
SSLCertificateKeyFile /etc/ssl/private/apache.key | SSLCertificateKeyFile /etc/ssl/private/apache.key | ||
DavLockDB / | DavLockDB /mnt/synology/web1/www/svn/DavLock | ||
<Location /> | <Location /> | ||
Dav svn | Dav svn | ||
SVNParentPath /home/svn | SVNParentPath /mnt/synology/web1/home/svn/ | ||
SVNListParentPath on | SVNListParentPath on | ||
AuthType Basic | AuthType Basic | ||
Zeile 59: | Zeile 74: | ||
</Location> | </Location> | ||
ErrorLog ${APACHE_LOG_DIR}/svn. | ErrorLog ${APACHE_LOG_DIR}/svn.kirner.or.at-error.log | ||
CustomLog ${APACHE_LOG_DIR}/svn. | CustomLog ${APACHE_LOG_DIR}/svn.kirner.or.at-access.log combined | ||
</virtualhost> | </virtualhost> | ||
</pre> | |||
=== aktivieren === | |||
<pre> | |||
cd /etc/apache2/sites-available/ | |||
sudo a2ensite svn.conf | |||
sudo a2ensite svn-ssl.conf | |||
sudo systemctl reload apache2.service | |||
</pre> | </pre> | ||
Zurück zu [[Apache DAV-SVN (unterschiedliche Versionen)#Ubuntu Versionen|Apache DAV-SVN]] | Zurück zu [[Apache DAV-SVN (unterschiedliche Versionen)#Ubuntu Versionen|Apache DAV-SVN]] |
Aktuelle Version vom 20. August 2020, 23:59 Uhr
Installation
sudo apt-get install libapache2-mod-svn sudo a2enmod dav sudo a2enmod dav_fs sudo systemctl restart apache2.service
Konfiguration
Zertifikat siehe SSL_Zertifikat
Passwort-Datenbank anlegen
Falls die Datenbank noch nicht existiert, ist der Parameter -c erforderlich.
sudo htpasswd /etc/apache2/dav_svn.passwd <user name>
DavLockDB
Verzeichnis für DavLockDB anlegen:
sudo mkdir /mnt/synology/web1/www/svn sudo chown www-data:www-data /mnt/synology/web1/www/svn
Links
https://httpd.apache.org/docs/2.4/mod/mod_dav_fs.html
svn.conf
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>
svn-ssl.conf
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>
aktivieren
cd /etc/apache2/sites-available/ sudo a2ensite svn.conf sudo a2ensite svn-ssl.conf sudo systemctl reload apache2.service
Zurück zu Apache DAV-SVN