Hallo,
ich komme mit meinem Latein nicht mehr weiter und hoffe das ihr eine Idee habt.
Problem:
Nach dem Umzug meiner Nextcloudinstanz von einem Webspace auf einen Vserver führt
ein Aufruf von nextcloud.domain.org mich weiter auf 12.12.12.12/nextcloud
Die Nextcloud funktioniert so auch wunderbar. Nur sollte statt der Server IP, die Domain genutzt werden.
Setup: Apache, PHP 7.3, MySql
Nextcloud Config:
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"32434.5342.234.121",
"nextcloud.domain.org"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "18.0.3.0",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"theme": "",
"htaccess.RewriteBase": "\/",
"loglevel": 2,
"maintenance": false,
"updater.secret": "***REMOVED SENSITIVE VALUE***"
}
}
overwrite.cli.url auf Subdomain gesetzt -> keine Veränderung
overwritehost auf Subdomain gesetzt -> Redirection Loop zwischen Server IP und Domain (302)
Virutalhost für die Domain unter Apache:
<VirtualHost *:80>
ServerAdmin max@mustermann.com
#ServerAlias nextcloud.domain.org
DocumentRoot /var/www/nextcloud
ServerName nextcloud.domain.org
<Directory /var/www/nextcloud>
Options -Indexes +FollowSymLinks
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Apache2 Conf für die Domain
<Directory /var/www/nextcloud/>
Require all granted
Options FollowSymlinks MultiViews
AllowOverride all
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
</Directory>
DNS A, AAAA Record zeigen auf die Server IP; CNAME auf die Subdomain
Habt ihr noch irgendwelche Ideen wo der Fehler liegen könnte?
Danke im Vorraus