我尝试使用WampServer在我的localhost上安装SimpleSAMLphp,所以我按照此页面上的教程进行操作:https://simplesamlphp.org/docs/stable/simplesamlphp-install
但是当我完成并尝试访问我的安装的主页时,我收到了这样的信息:"禁止 您无权访问/在此服务器上。"
我知道它来自我的apache的配置,但我不明白如何解决它。
我把这行放在我的文件httpd.con:
中<VirtualHost *>
ServerName localhost:80
DocumentRoot /var/www/localhost:80
Alias /simplesaml /var/simplesamlphp/www
</VirtualHost>
我将我在https://simplesamlphp.org下载的所有文件放在路径C:/ wamp / www / var / simplesamlphp /
我尝试更改我的文件httpd.con的配置,但我仍然有同样的错误。
================第二篇文章==============
经过多次尝试不同的配置,我仍然不明白为什么它不起作用,但我有新的元素。
我返回基本文件httpd.con我只是取消注释行:Include conf/extra/httpd-vhosts.conf
并在文件httpd-vhosts.conf中添加以下行:
<VirtualHost *:80>
ServerName localhost:80
DocumentRoot "c:/wamp/www/<myWebSite>"
Alias /simplesaml c:/wamp/www/var/simplesamlphp/www/
</VirtualHost>
但现在当我进入localhost / simplesaml页面时,我收到此消息:page in inaccessible
所以我尝试在路径上交换索引文件:C:\wamp\www\var\simplesamlphp\www
新文件工作(如果我尝试做回声&#34; toto&#34;)
所以我迷路了。
答案 0 :(得分:-1)
对一个愚蠢问题的合理答案检查你的php版本