使用IIS和反向代理为SSL设置SonarQube以引发502错误

问题描述

我正在尝试在Windows Server 2019上使用SSL设置SonarQube。我可以使用http://localhost:9000在服务器上本地访问SonarQube服务器。

我按照outlined here的确切步骤使用URL重写模块在IIS中设置反向代理。我看到重新写入网址设置为http://http://localhost:9000/{R:1}

但是,当我浏览https://sonarqube.mydomain.com时,出现以下错误

502 - Web server received an invalid response while acting as a gateway or proxy server.

我需要在SonarQube中启用任何功能以启用反向代理吗?

我在网站日志%systemDrive%\inetpub\logs\LogFiles中找不到任何内容

解决方法

找到了 我不知道为什么URL重写模块将URL添加为http://http://localhost:9000/{R:1}

enter image description here

我手动将其更改为http://localhost:9000/{R:1}并且有效

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...