0

我到处寻找答案,但没有成功。

我在我的 OSX Web 服务器上安装了 PHP。当我访问 myserver.com/test.php 时,一切正常。

但是,我有一个由 mod_shib 和 shibd 保护的子目录,名为 /shibboleth/

当我将完全相同的 test.php 文件放入 /shibboleth/ 时,它会返回给浏览器而不是解释。我弄乱了 AddType 和 AddHandler 的一百万种组合;我已经检查过我正在使用

这是我的 httpd.conf 文件的相关部分:

<VirtualHost *:443>
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
ServerName jeesty.homeip.net
DocumentRoot "/Library/WebServer/Safe"
DirectoryIndex index.html index.php
DefaultType text/plain
AddType application/x-httpd-php .php
AddHandler application/x-httpd-php .php
<Directory "/Library/WebServer/Safe/">
DirectoryIndex index.html index.php
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
php_admin_flag engine on
</Directory>
<Location /shibboleth/>
SetHandler shib
AuthType shibboleth
ShibRequestSetting requireSession 1
Require valid-user
php_admin_flag engine on
</Location>
</VirtualHost>
4

1 回答 1

0

如果目录是字面上/shibboleth的 ,那么它在 的文档根目录之外/Library/WebServer,因此不会继承在httpd.conf.

于 2012-09-29T21:55:55.067 回答