我在服务器上安装了DNN9(9.3.2)(在Windows Server 2012 R2的IIS上运行)。 DNN处理的网站运行良好。 我在同一台计算机上安装了Jira(8.2.2)。吉拉(Jira)在本地可访问。现在,我想通过使用上下文路径www.example.com/jira从外部访问它。我将server.xml中的上下文路径设置为/ jira。
<Connector port="8081" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`"<>"
maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"
acceptCount="100" disableUploadTimeout="true" bindOnInit="false" scheme="http"
proxyName="www.example.com" proxyPort="80"/>
为IIS安装了ARR 3.0。我假设我必须在DNN应用程序目录中添加一个虚拟目录,并设置一条规则来处理jira的上下文路径。我尝试了以下web.config设置:
<system.webServer>
<rewrite>
<rules>
<remove name="HTTP nach HTTPS" />
<rule name="URL Rewrite JIRA" enabled="true" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://www.example.com:8080/jira/{R:1}" />
</rule>
</rules>
</rewrite>
<security>
<requestFiltering allowDoubleEscaping="true" />
</security>
<urlCompression doStaticCompression="false" />
<caching enabled="false" enableKernelCache="false" />
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
</customHeaders>
</httpProtocol>
</system.webServer>
如果我致电www.example.com/jira网站,则会收到404错误。不知道为什么。