JIRA反向代理Nginx(Mismatched URL Scheme)解决方案

编程知识 更新时间:2023-05-01 23:50:49

  • 报错信息
  • 解决方案

报错信息

官方给的SSL解决方案是使用Apache Tomcat配置SSL,但是我自己这里类比着使用了Ngnix的方案。然而登陆页面提示下面的信息,官网提供的链接也没有解决,最后终于找到了方法,记录在这里。

We’ve detected a potential problem with JIRA’s Dashboard configuration that your administrator can correct. Hide
Dashboard Diagnostics: Mismatched URL Scheme
JIRA is reporting that it is using the URL scheme ‘http’, which does not match the scheme used to run these diagnostics, ‘https’. This is known to cause JIRA to construct URLs using an incorrect hostname, which will result in errors in the dashboard, among other issues.
The most common cause of this is the use of a reverse-proxy HTTP(S) server (often Apache or IIS) in front of the application server running JIRA. While this configuration is supported, some additional setup might be necessary in order to ensure that JIRA detects the correct scheme.

The following articles describe the issue and the steps you should take to ensure that your web server and app server are configured correctly:

  • Gadgets do not display correctly after upgrade to JIRA 4.0

  • Integrating JIRA with Apache

  • Integrating JIRA with Apache using SSL

If you believe this diagnosis is in error, or you have any other questions, please contact Atlassian Support.

解决方案

打开server.xml文件,一般存放于/usr/local/atlassian/jira/conf/server.xml,修改如下配置

...
    <Service name="Catalina">
        <Connector port="8103"
                   maxThreads="150"
                   minSpareThreads="25"
                   maxSpareThreads="75"
                   connectionTimeout="20000"
                   enableLookups="false"
                   maxHttpHeaderSize="8192"
                   protocol="HTTP/1.1"
                   useBodyEncodingForURI="true"
                   redirectPort="8443"
                   acceptCount="100"
                   disableUploadTimeout="true"

<!-- 如果没有下面的属性,添加并修改 -->
        scheme="https"
        proxyName="example"
        proxyPort="443"
/>
...

ProxyPort的值要和真实访问的端口一致,不管经过几次跳转,输入面向用户的端口。
例:用户访问443→路由跳转6080→Nginx跳转7080,这种情况,属性内填入443即可。

更多推荐

JIRA反向代理Nginx(Mismatched URL Scheme)解决方案

本文发布于:2023-04-24 15:05:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/3b4a43aabedf5bf39a544cb846f8857e.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:解决方案   Nginx   JIRA   Mismatched   Scheme

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 100895文章数
  • 26076阅读数
  • 0评论数