【问题标题】:Owncloud - wrong url on activation linksOwncloud - 激活链接上的错误网址
【发布时间】:2020-09-22 09:15:18
【问题描述】:

我对 Owncloud 有疑问。创建新用户后,发送给该用户的电子邮件使用私有 IP 地址,而不是域名。验证链接示例:

http://192.168.3.103:4490/index.php/index.php/settings/users/setpassword/form/728851077702434409735/some.username

我想修复它。它需要是格式

https://cloud.mydomain.pl:4490/index.php/index.php/settings/users/setpassword/form/728851077702434409735/some.username

Owncloud 配置如下

$CONFIG = array (
  'instanceid' => 'xxx',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' =>
  array (
    1 => 'mydomain',
    2 => 'cloud',
    3 => 'https://cloud.mydomain.pl:44900',
    4 => '192.168.3.103:4490',
  ),
  'datadirectory' => '/var/www/html/data',
  'overwrite.cli.url' => 'https://cloud.mydomain.pl:44900',
  'overwritecondaddr' => '^192\\.168\\.3\\.103$',
  'dbtype' => 'sqlite3',
  'version' => '10.6.0.0',
  'logtimezone' => 'UTC',
  'installed' => true,
  'loglevel' => 0,

  // LOGGING
  // "log_type" => "owncloud",
  // "logfile" => "owncloud.log",
  // "loglevel" => "0",
  // "logdateformat" => "F d, Y H:i:s",
  // "mail_smtpdebug" => true;

  'maintenance' => false,
  'theme' => '',
  'mail_domain' => 'mydomain.pl',
  'mail_from_address' => 'admin',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauth' => 1,
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtphost' => 'mydomain.pl',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'admin@mydomain.pl',
  'mail_smtppassword' => 'xxx',
);

【问题讨论】:

    标签: php owncloud


    【解决方案1】:

    'overwrite.cli.url' 之后添加:

    'overwritehost' => 'cloud.mydomain.pl',
    

    【讨论】:

      猜你喜欢
      • 2015-12-01
      • 2019-07-22
      • 2017-10-30
      • 1970-01-01
      • 2016-07-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多