Nextcloud version : 23.0.2
Operating system and version : rhel 8.5
Apache or nginx version : Apache/2.4.37
PHP version : PHP 7.4.28
I connect nextcloud with share.domain1.com from the local network (use apache on the same server) and connect with share.domain2.com from external, throught WAF.
When I used âoverwritehostâ => âshare.domain2.comâ, option then it started to redirect portal to the domain2. (I try to connect domain1 but it redirects).
I only want to connect the portal with that two domain and use only domain2 for share links.
<?php
$CONFIG = array (
'instanceid' => 'ocl7fx8z9fxf',
'passwordsalt' => '',
'secret' => '',
'trusted_domains' =>
array (
0 => '',
1 => '',
2 => '',
6 => '',
7 => '',
),
'datadirectory' => '/share/',
'dbtype' => 'mysql',
'version' => '23.0.2.1',
# share link domain change
# 'overwritehost' => 'share.X.X',
#session timeout
'session_lifetime' => 3600,
'session_keepalive' => false,
'remember_login_cookie_lifetime' => 0,
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '',
'dbpassword' => '',
'installed' => true,
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
# there is that domain2 but not works.
'mail_domain' => 'domain2.com',
'mail_from_address' => '',
'mail_smtpmode' => 'smtp',
'mail_smtphost' => '',
'mail_smtpauthtype' => 'NTLM',
'mail_smtpport' => '25',
'mail_sendmailmode' => 'smtp',
'twofactor_enforced' => 'false',
'twofactor_enforced_groups' =>
array (
0 => 'SYS',
),
'twofactor_enforced_excluded_groups' =>
array (
),
);