【问题标题】:Configured SonarQube 6.1 on HTTPs using Apache but both HTTP and HTTPs works - Need only HTTPs使用 Apache 在 HTTPs 上配置 SonarQube 6.1,但 HTTP 和 HTTPS 都有效 - 只需要 HTTPS
【发布时间】:2017-04-08 08:58:43
【问题描述】:

最近我安装了SonarQube 6.1 版本,我使用Apache 启用了HTTPs,现在我可以使用下面的URL 连接到SonarQube。

知道如何禁用 HTTP 并仅使 HTTP 工作吗?

HTTPs URL = https://<SonarServer>/sessions/new
HTTP URL = http://<SonarServer>:9000/

【问题讨论】:

    标签: sonarqube sonarqube-web


    【解决方案1】:

    根据您的 URL,Web 前端服务器和 Apache 安装在同一主机上。所以你只需要配置 SonarQube 监听 localhost(在 sonar.properties sonar.web.host=127.0.0.1 中)并配置 Apache 为 127.0.0.1 做反向代理。

    【讨论】:

      【解决方案2】:

      您可以尝试两种方法:

      1. 靠近,制作声纳 https (http://docs.sonarqube.org/display/SONARQUBE52/Running+SonarQube+Over+HTTPS)

      根据上面的链接,您可以轻松地将声纳设置为 https,而不是 http - 只需确保提供证书等。

      1. 你可以像https://stackoverflow.com/users/2435199/eric-hartmann 描述的那样,只是简单地将它绑定到本地主机

      2. 通过防火墙阻止来自外部 ips 的 9000!

      恕我直言,我会坚持使用 1 或 2,具体取决于您希望在该问题上花费的时间!

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-07-01
        • 1970-01-01
        • 2018-11-15
        • 1970-01-01
        • 2017-03-28
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多