如何在settings.php文件中使用phpcas?

时间:2019-01-09 03:01:52

标签: php drupal drupal-7 cas

我们在docker本地环境中进行了以下设置

PHP-fpm(7.1)+ Drupal(7)+ Apache Nginx的 Apereo CAS

当前,我们正在使用生产服务器的CAS。 现在,我们要设置一个本地CAS,并制作php / Drupal进行登录。

我在settings.php中添加了以下配置

$conf['cas_server'] = 'https://localhost/cas'; 

但是它尝试重定向到CAS,但是通过提供这个奇怪的URL失败了。 https://https//localhost/cas/cas/login?service=http%3A%2F%2Flocalhost%2Fdashboard%3Fdestination%3Ddashboard

此外,我尝试使用以下配置进行配置,但效果不佳

/$conf['cas_hostname'] = 'localhost';
// Context of the CAS Server 
$conf['cas_path'] = '/cas';
// Port of your CAS server. Normally for a https server it's 443
$conf['cas_port'] = 443

有人可以帮我吗?

0 个答案:

没有答案
相关问题