首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何用Acquia平台配置SimpleSAMLphp?

如何用Acquia平台配置SimpleSAMLphp?
EN

Stack Overflow用户
提问于 2017-04-04 16:49:41
回答 2查看 699关注 0票数 0

我正在按照Acquia网站https://docs.acquia.com/articles/using-simplesamlphp-acquia-cloud-site上关于配置SimpleSAMLphp的说明进行操作,而文档似乎并不十分精确。在他们的文档中,它说要运行下面的命令来安装SimpleSAMLphp库。

代码语言:javascript
复制
cd docroot; ln -s ../simplesamlphp/www simplesaml

为了安装,安装simplesamlphp_auth Drupal模块,它们链接到simpleSAMLphp身份验证页面auth。在SimpleSAMLphp Installation中,它被链接到SimpleSAMLphp安装和配置页面https://simplesamlphp.org/docs/stable/simplesamlphp-install。然而,这一页中的说明就像我在Acquia文档的第二步中所做的一样。与其在docroot旁边解压缩simplesamlphp-1.x.y,不如在var文件夹中解压它。

现在,一旦我阅读了关于Acquia文档的说明并试图访问simplesaml,https://mywebsite.dd:8443/simplesaml/,我就得到了以下错误:

禁用您没有访问/simplesaml/在此服务器上的权限.

因此,我找到了这个线程,Getting a 403 forbidden error for simplesaml after Apache upgrade,它讨论了类似于SimpleSAMLphp安装和配置指令中步骤6的错误。因此,我使用了/Applications/DevDesktop/apache/conf/extra/httpd-vhosts.conf并配置了以下内容:

代码语言:javascript
复制
<VirtualHost *:8083>
     ServerAdmin userName@mywebsite.com
     DocumentRoot "/Users/userName/sites/drupalsites/docroot"
     ServerName drupalsites.local
     ServerAlias drupalsites.local
     ErrorLog "logs/drupalsites-error_log"
     CustomLog "logs/drupalsites-access_log" common
     <Directory "/Users/userName/sites/drupalsites/docroot">
         Options Indexes FollowSymLinks Includes ExecCGI
         AllowOverride All
         Require all granted
     </Directory>

     Alias /simplesaml simplesamlphp/www

    <Directory "/Users/userName/sites/drupalsites/simplesamlphp/www">
         Require all granted
     </Directory>

 </VirtualHost>

然而,我仍然会遇到同样的错误。

已禁用

您没有访问/simplesaml/在此服务器上的权限。

所以,问题是,我是不是以错误的方式安装了SimpleSAMLphp?第二,如果不是,我哪里出错了?第三,如何解决此错误并重新回到轨道上?我还发现了这个文档,https://www.chapterthree.com/blog/how-to-configure-simplesamlphp-for-drupal-8-on-acquia,它讨论了如何在Aquia的plaform上设置SimpleSAMLphp,但它与我上面列出的其他文档并不十分一致。所以,我不确定我该跟着哪一个。任何建议都是非常感谢的。

EN

回答 2

Stack Overflow用户

发布于 2017-10-18 19:02:15

尝试将其添加到docroot/..htaccess中

代码语言:javascript
复制
RewriteCond %{REQUEST_URI} !^/simplesaml
票数 1
EN

Stack Overflow用户

发布于 2018-03-29 10:45:48

更准确地说,@realgt回答:

代码语言:javascript
复制
  # Copy and adapt this rule to directly execute PHP files in contributed or
  # custom modules or to run another PHP application in the same directory.
  RewriteCond %{REQUEST_URI} !/core/modules/statistics/statistics.php$
+ # Allow access to simplesaml paths
+ RewriteCond %{REQUEST_URI} !^/simplesaml
  # Deny access to any other PHP files that do not match the rules above.
  RewriteRule "^.+/.*\.php$" - [F]

这在以下链接中提供:https://www.chapterthree.com/blog/how-to-configure-simplesamlphp-for-drupal-8-on-acquia

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43213198

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档