Mar*_*k S 4 apache mod-rewrite kerberos mod-proxy splunk
我已经配置了一个Apache服务器,根据下面的配置为我们的Splunk安装提供SSO和反向代理.SSO与反向代理一样,隐藏在/ splunk URL后面的端口8000上运行的Splunk实例.
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>
Run Code Online (Sandbox Code Playgroud)
问题出在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
Run Code Online (Sandbox Code Playgroud)
我不确定这个问题是否与Splunk有关.有没有人看过这个,我该如何解决这个问题?
小智 8
尝试
RewriteRule . - [E=RU:%1,NS]
Run Code Online (Sandbox Code Playgroud)
确保RewriteRule不适用于内部子请求.
| 归档时间: |
|
| 查看次数: |
4482 次 |
| 最近记录: |