Nextcloud (Linux): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 1: | Zeile 1: | ||
{{ | == Installation == | ||
Siehe [[Nextcloud (Linux)#Migration / Update]] | |||
== Konfiguration == | |||
=== Sites === | |||
<pre> | |||
cd /etc/apache2/sites-available/ | |||
sudo nano nextcloud.conf | |||
</pre> | |||
<pre> | |||
<VirtualHost *:80> | |||
ServerName nextcloud.kirner.or.at | |||
ServerAlias nextcloud.kirner.or.at | |||
Redirect / https://nextcloud.kirner.or.at | |||
</VirtualHost> | |||
</pre> | |||
<pre> | |||
sudo nano nextcloud-ssl.conf | |||
</pre> | |||
<pre> | |||
<VirtualHost *:443> | |||
ServerName nextcloud.kirner.or.at | |||
ServerAlias nextcloud.kirner.or.at | |||
SSLEngine on | |||
SSLCertificateFile /etc/ssl/certs/nextcloud.crt | |||
SSLCertificateKeyFile /etc/ssl/private/apache.key | |||
# Pfad zu den Webinhalten | |||
DocumentRoot /var/www/nextcloud | |||
KeepAlive On | |||
KeepAliveTimeout 5 | |||
<IfModule mod_headers.c> | |||
Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload" | |||
</IfModule> | |||
ErrorLog ${APACHE_LOG_DIR}/nextcloud.kirner.or.at-error.log | |||
CustomLog ${APACHE_LOG_DIR}/nextcloud.kirner.or.at-access.log combined | |||
</VirtualHost> | |||
</pre> | |||
<pre> | |||
sudo a2ensite nextcloud | |||
sudo a2ensite nextcloud-ssl | |||
sudo service apache2 reload | |||
</pre> | |||
== Migration / Update == | == Migration / Update == |
Version vom 3. Oktober 2016, 23:03 Uhr
Installation
Siehe Nextcloud (Linux)#Migration / Update
Konfiguration
Sites
cd /etc/apache2/sites-available/ sudo nano nextcloud.conf
<VirtualHost *:80> ServerName nextcloud.kirner.or.at ServerAlias nextcloud.kirner.or.at Redirect / https://nextcloud.kirner.or.at </VirtualHost>
sudo nano nextcloud-ssl.conf
<VirtualHost *:443> ServerName nextcloud.kirner.or.at ServerAlias nextcloud.kirner.or.at SSLEngine on SSLCertificateFile /etc/ssl/certs/nextcloud.crt SSLCertificateKeyFile /etc/ssl/private/apache.key # Pfad zu den Webinhalten DocumentRoot /var/www/nextcloud KeepAlive On KeepAliveTimeout 5 <IfModule mod_headers.c> Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload" </IfModule> ErrorLog ${APACHE_LOG_DIR}/nextcloud.kirner.or.at-error.log CustomLog ${APACHE_LOG_DIR}/nextcloud.kirner.or.at-access.log combined </VirtualHost>
sudo a2ensite nextcloud sudo a2ensite nextcloud-ssl sudo service apache2 reload
Migration / Update
Migration Owncloud to Nextcloud
Links
Zurück zu Ubuntu