Apache DAV-SVN (Ubuntu 18.04): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 12: | Zeile 12: | ||
</pre> | </pre> | ||
== Konfiguration == | |||
Verzeichnis für ''DavLockDB'' anlegen: | |||
<pre> | |||
sudo mkdir /var/www/svn | |||
sudo chown www-data:www-data /var/www/svn | |||
</pre> | |||
Port ''80'' auf ''443'' weiterleiten: | |||
<pre> | |||
sudo vi /etc/apache2/sites-available/svn.conf | |||
</pre> | |||
<pre> | |||
<VirtualHost *:80> | |||
ServerName svn.<domain> | |||
ServerAlias svn.<domain> | |||
Redirect / https://svn.<domain> | |||
</VirtualHost> | |||
</pre> | |||
<pre> | |||
sudo vi /etc/apache2/sites-available/svn-ssl.conf | |||
</pre> | |||
<pre> | |||
<virtualhost *:443> | |||
ServerName svn.<domain> | |||
SSLEngine On | |||
SSLCertificateFile /etc/ssl/certs/svn.crt | |||
SSLCertificateKeyFile /etc/ssl/private/apache.key | |||
DavLockDB /var/www/svn/DavLock | |||
<Location /> | |||
Dav svn | |||
SVNParentPath /home/svn | |||
SVNListParentPath on | |||
AuthType Basic | |||
AuthName "Subversion repository" | |||
AuthUserFile "/etc/apache2/dav_svn.passwd" | |||
Require valid-user | |||
</Location> | |||
ErrorLog ${APACHE_LOG_DIR}/svn.<domain>-error.log | |||
CustomLog ${APACHE_LOG_DIR}/svn.<domain>-access.log combined | |||
</virtualhost> | |||
</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]] |
Version vom 20. August 2020, 23:31 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 /var/www/svn sudo chown www-data:www-data /var/www/svn
Port 80 auf 443 weiterleiten:
sudo vi /etc/apache2/sites-available/svn.conf
<VirtualHost *:80> ServerName svn.<domain> ServerAlias svn.<domain> Redirect / https://svn.<domain> </VirtualHost>
sudo vi /etc/apache2/sites-available/svn-ssl.conf
<virtualhost *:443> ServerName svn.<domain> SSLEngine On SSLCertificateFile /etc/ssl/certs/svn.crt SSLCertificateKeyFile /etc/ssl/private/apache.key DavLockDB /var/www/svn/DavLock <Location /> Dav svn SVNParentPath /home/svn SVNListParentPath on AuthType Basic AuthName "Subversion repository" AuthUserFile "/etc/apache2/dav_svn.passwd" Require valid-user </Location> ErrorLog ${APACHE_LOG_DIR}/svn.<domain>-error.log CustomLog ${APACHE_LOG_DIR}/svn.<domain>-access.log combined </virtualhost>
Zurück zu Apache DAV-SVN