Hallo Liste,
Ich hab mir auf einem Bananapi Pro mit SATA Platte Nextcloud installiert
unter armbian - also einem Debian Derivat für raspberry & Co.
So weit so gut - DynDNS Domäne ist auch angelegt - funktioniert auch -
derzeit noch abgeschalten / nicht aktiviert (Sicherheit)
Nextcloud funktioniert jetzt also im Heimnetz - derzeit noch mit http
Zugriff statt https.
Entsprechend (Tutorial) hab ich mir unter /etc/apache2/sites-enebled
eine nextcloud.conf eingerichtet.
Nextcloud
<https://docs.nextcloud.com/server/13/admin_manual/configuration_server/harden_server.html>
schreibt nun, dass für den HTTPS Zugriff eine virtual Host´s Datei
angelegt werden soll. Das hab ich kapiert. Was ich nicht kapiere, ist,
kann ich das
<VirtualHost *:80>
ServerName cloud.nextcloud.com
Redirect permanent / https://cloud.nextcloud.com/
</VirtualHost>
und
<VirtualHost *:443>
ServerName cloud.nextcloud.com
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000;
includeSubDomains"
</IfModule>
</VirtualHost>
(entsprechend abgeändert) direkt in meinen bestehende nextcloud.conf
reinschreiben ? Die sieht bisher so aus:
Alias /nextcloud "/var/www/html/nextcloud/"
<Directory /var/www/html/nextcloud/>
Options +FollowSymlinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/html/nextcloud
SetEnv HTTP_HOME /var/www/html/nextcloud
</Directory>
oder braucht es dazu eine weitere *.conf, die dann enabled werden muss ?
Danke !