您好,我在ubuntu 18.04.02中有一台Apache web服务器,当我尝试使用我的公共IP访问我的站点(VTiger CRM7.1)时,它总是重定向到我的私有IP
当前配置文件
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/html/crm/
ServerName example.com
ServerAlias www.example.com
<Directory /var/www/html/crm/>
Options +FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>防火墙已禁用
发布于 2019-03-19 05:22:26
您确定您的CRM已配置为在外部IP上工作吗?也许它会在你第一次访问时给你重定向。
发布于 2019-03-25 06:57:32
在config.inc.php中使用以下$site_URL并将其替换为当前值
$site_URL = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']==='on' ? 'https': 'http')."://".$_SERVER['HTTP_HOST'].(dirname($_SERVER['PHP_SELF']) != '/' && dirname($_SERVER['PHP_SELF']) != '\\' ? str_replace('\\','/',dirname($_SERVER['PHP_SELF'])) : '').'/'; https://stackoverflow.com/questions/55230175
复制相似问题