0

我有 Apache + Passenger 设置,其中 Rails 应用程序位于域根目录中。该应用程序将受Shibboleth保护,但要求

/Shibboleth.sso/Metadata

从 Rails返回404错误。

如果我从 DocumentRoot 中删除 Rails 应用程序(重命名文件夹),那么 Shibboleth 会正确地为我提供元数​​据,但一旦我恢复 Rails 应用程序就会再次停止。

如何阻止乘客处理该 URL?我应该alias去某个地方吗?在哪里?

编辑:我也试过这个,但没有效果:

<Location /Shibboleth.sso>
  SetHandler shib
</Location>
4

1 回答 1

2

更好的方法是在 Apache 中禁用 /Shibboleth.sso 的乘客

它应该是这样的:

    <Location /Shibboleth.sso>
            PassengerEnabled off
            Satisfy Any
    </Location>
于 2014-03-05T11:50:53.747 回答