4

以下の構成に従って、Splunk インストールに SSO とリバース プロキシを提供するように Apache サーバーを構成しました。SSO は、ポート 8000 で実行されている Splunk インスタンスを /splunk URL の背後に隠すリバース プロキシと同様に機能します。

ProxyPass /splunk http://localhost:8000/splunk
ProxyPassReverse /splunk http://localhost:8000/splunk
<Location /splunk >
        # Kerberos Authentication
        AuthType Kerberos
        AuthName "Kerberos Login"
        KrbAuthRealms MYDOMAIN.COM
        Krb5KeyTab /etc/krb5.http.keytab
        KrbMethodNegotiate on
        KrbAuthoritative on
        KrbMethodK5Passwd off
        KrbLocalUserMapping on
        KrbSaveCredentials on
        require valid-user

        # SSO
        RewriteEngine On
        RewriteCond %{LA-U:REMOTE_USER} (.+)$
        RewriteRule . - [E=RU:%1]
        RequestHeader set REMOTE_USER %{RU}e
</Location>

問題は Apache ログにあります。次のエラー メッセージが大量に表示されます。

[client x.x.x.x] Request exceeded the limit of 10 subrequest nesting levels due to probable confguration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://splunk.mydomain.com/splunk/en-GB/debug/sso

この問題が Splunk に関連しているかどうかはわかりません。他の誰かがこれを見たことがありますか?どうすれば問題を解決できますか?

4

1 に答える 1

8

試す

RewriteRule . - [E=RU:%1,NS]

RewriteRuleが内部サブリクエストに適用されないようにするため。

于 2012-06-27T09:49:24.773 に答える