我build立了一个PHP应用程序(SimpleSAMLphp 1.10.0-rc2)。 升级到Apache / 2.4.7(Ubuntu)后,我得到了一个403禁止。
SimpleSAMLphp的www目录在/var/simplesamlphp-1.10.0-rc2/www
有一个Apacheconfiguration文件在apache2 / conf.d / simplesamlphp.conf中:
Alias /simplesamlphp /var/simplesamlphp-1.10.0-rc2/www <Directory /var/simplesamlphp-1.10.0-rc2/www> Options -Indexes FollowSymLinks AllowOverride AuthConfig FileInfo Order allow,deny Allow from all </Directory>
它似乎没有解释,因为它只是给了我一个404。当我添加片段到Apache2 / sites-available / 000-default.conf它给了我一个403.日志看起来像这样:
mod_authz_core.c(802): [client xxx] AH01626: authorization result of Require all denied: denied mod_authz_core.c(802): [client xxx] AH01626: authorization result of <RequireAny>: denied [client xxx] AH01630: client denied by server configuration: /var/simplesamlphp-1.10.0-rc2/www/
如果我将该指令设置为
<Directory /var/simplesamlphp-1.10.0-rc2/www> Require all granted </Directory>
日志告诉我:
AH01797: client denied by server configuration: /var/simplesamlphp-1.10.0-rc2/www/
文件由www-data拥有。
有什么build议么?
在“ Directory标签中试试这个:
DirectoryIndex index.html
使用您的应用程序索引文件更改index.html。