我已经安装了Entrust的UC多域SSL证书,用于两个OpenCart安装和一个同一IP托管的公司域。
我按照以下顺序在证书上有3个域
当我在OpenCart和config.php中激活SSL时,我的安全区域链接被更改;然而,这些链接发生了奇怪的事情。
示例:
Page: www.example2.com
Link: https://www.example2.com/admin
Resulting Page: https://www.example.com/admin
OR https://www.example2.com/admin (but code from https://www.example.com/admin)
OR if https://https://www.example.com/admin doesn't exist I get a 404 page
www.example.com/.htaccess
Options +FollowSymLinks
Options -Indexes
www.example2.com/.htaccess
Options +FollowSymLinks
Options -Indexes
www.example2.com/php.ini
magic_quotes_gpc = Off;
register_globals = Off;
default_charset = UTF-8;
memory_limit = 64M;
max_execution_time = 18000;
upload_max_filesize = 999M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.use_cookies = On;
session.use_trans_sid = Off;
session.gc_maxlifetime = 12000000;
allow_url_fopen = on;
www.example2.com/config.php
<?php
// HTTP
define('HTTP_SERVER', 'http://www.example2.com/');
define('HTTP_IMAGE', 'http://www.example2.com/image/');
define('HTTP_ADMIN', 'http://www.example2.com/admin/');
// HTTPS
define('HTTPS_SERVER', 'https://www.example2.com/');
define('HTTPS_IMAGE', 'https://www.example2.com/image/');
// DIR
define('DIR_APPLICATION', '/home/user/example2.com/catalog/');
define('DIR_SYSTEM', '/home/user/example2.com/system/');
define('DIR_DATABASE', '/home/user/example2.com/system/database/');
define('DIR_LANGUAGE', '/home/user/example2.com/catalog/language/');
define('DIR_TEMPLATE', '/home/user/example2.com/catalog/view/theme/');
define('DIR_CONFIG', '/home/user/example2.com/system/config/');
define('DIR_IMAGE', '/home/user/example2.com/image/');
define('DIR_CACHE', '/home/user/example2.com/system/cache/');
define('DIR_DOWNLOAD', '/home/user/example2.com/download/');
define('DIR_LOGS', '/home/user/example2.com/system/logs/');
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'username');
define('DB_PASSWORD', 'password');
define('DB_DATABASE', 'database');
define('DB_PREFIX', '');
?>
www.example2.com/admin/config.php
<?php
// HTTP
define('HTTP_SERVER', 'http://www.example2.com/admin/');
define('HTTP_CATALOG', 'http://www.example2.com/');
define('HTTP_IMAGE', 'http://www.example2.com/image/');
// HTTPS
define('HTTPS_SERVER', 'https://www.example2.com/admin/');
define('HTTPS_IMAGE', 'https://www.example2.com/image/');
// DIR
define('DIR_APPLICATION', '/home/user/example2.com/admin/');
define('DIR_SYSTEM', '/home/user/example2.com/system/');
define('DIR_DATABASE', '/home/user/example2.com/system/database/');
define('DIR_LANGUAGE', '/home/user/example2.com/admin/language/');
define('DIR_TEMPLATE', '/home/user/example2.com/admin/view/template/');
define('DIR_CONFIG', '/home/user/example2.com/system/config/');
define('DIR_IMAGE', '/home/user/example2.com/image/');
define('DIR_CACHE', '/home/user/example2.com/system/cache/');
define('DIR_DOWNLOAD', '/home/user/example2.com/download/');
define('DIR_LOGS', '/home/user/example2.com/system/logs/');
define('DIR_CATALOG', '/home/user/example2.com/catalog/');
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'username');
define('DB_PASSWORD', 'password');
define('DB_DATABASE', 'database');
define('DB_PREFIX', '');
?>
Apache:2.2.17
任何帮助都会很棒。
taylorjes
答案 0 :(得分:0)
我很遗憾听到你有问题。我把它传递给了Entrust支持团队,看看他们是否可以提供一些帮助。在他们看了你的帖子后,他们传递了以下内容。 “这是一个奇怪的问题,因为SSL证书无论如何都不会引导流量,它是控制用户点击超链接后所在位置的网站。这将是网站编码的问题,配置或重新设置错误。“我希望这对你有所帮助。