我的 simplesaml 工作得很好,直到我在 Ubuntu 上将 Apache 升级到 2.4.6
我收到的错误:
Forbidden
You don't have permission to access /simplesaml/ on this server.
在 Apache 上安装 simplesamlphp 的说明只需要 simplesamlphp 目录的别名:
https://simplesamlphp.org/docs/stable/simplesamlphp-install#section_6 https://simplesamlphp.org/docs/stable/simplesamlphp-install#section_6
但对于 Apache 2.4.6+,安全性发生了变化 - 当我添加目录指令时,它对我有用。例如:
<VirtualHost *:80>
ServerName mywebsite.dev
DocumentRoot /home/myuser/www/mywebsite/
<Directory /home/myuser/www/mywebsite/>
Require all granted
</Directory>
Alias /simplesaml /var/simplesamlphp/www
<Directory /var/simplesamlphp/www/>
Require all granted
</Directory>
</VirtualHost>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)