亲爱的sonarqube社区,
我们在apache2 secure(ssl)反向代理后面设置了sonarqube.正常访问工作正常,但特权操作会导致以下错误:
2017.12.19 08:26:02 DEBUG web [AWBtqc1RcFsQ/x1cAAAx] [auth.event]登录失败[原因| 在请求错误CSFR ] [法|智威汤逊] [供应商|地方|本地] [IP | xxx.xxx.xxx.xxx | yyy.yyy.yyy.yyy] [登录|管理员]
sonarqube在'/ sonar'运行,apache配置如下所示:
...
ProxyPreserveHost On
AllowEncodedSlashes NoDecode
...
<Location /sonar>
RequestHeader set X-Forwarded-Proto "https"
ProxyPass http://xxx.domain:9000/sonar
##ProxyPassReverse http://xxx.domain:9000/sonar
ProxyPassReverse [https://]https://<service>.<domain>.<tld>/sonar
</Location>
Run Code Online (Sandbox Code Playgroud)
sonarqube版本是6.7 LTS,apache版本是2.4.27
提前致谢
| 归档时间: |
|
| 查看次数: |
360 次 |
| 最近记录: |