Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,244
Community Members
 
Community Events
184
Community Groups

Issue integrating HTTPS into jira

Im having some issues trying to make HTTPS work nicely with jira. I have enable HTTPS support using the instruction provided in jira.

However, im still getting this error and i cannot find the cause of issue:

2017-05-17 15:15:41,621 http-nio-8080-exec-14 WARN admin 915x1978x1 jhdkh2 172.16.192.253,127.0.0.1 /rest/webResources/1.0/resources [c.a.p.r.c.security.jersey.XsrfResourceFilter] Additional XSRF checks failed for request: https://jira-test.xxx.net:80/rest/webResources/1.0/resources , origin: https://jira-test.xxx.net , referrer: https://jira-test.xxx.net/secure/Dashboard.jspa , credentials in request: true , allowed via CORS: false
2017-05-17 15:15:41,777 http-nio-8080-exec-6 ERROR admin 915x1982x1 jhdkh2 172.16.192.253,127.0.0.1 /plugins/servlet/gadgets/dashboard-diagnostics [c.a.g.d.internal.diagnostics.DiagnosticsServlet] DIAGNOSTICS: FAILED
com.atlassian.gadgets.dashboard.internal.diagnostics.UrlPortMismatchException: Detected URL port, '80', does not match expected port, '443'
	at com.atlassian.gadgets.dashboard.internal.diagnostics.Diagnostics.checkExpectedPort(Diagnostics.java:71)
	at com.atlassian.gadgets.dashboard.internal.diagnostics.Diagnostics.check(Diagnostics.java:33)

I search for this issue in the comunity and added some lines as per Resolutions recomendation but still not working :( 

Below is part of my server.xml file:

Service name="Catalina">

        <Connector port="8080"

                   maxThreads="150"
                   minSpareThreads="25"
                   connectionTimeout="20000"

                   enableLookups="false"
                   maxHttpHeaderSize="8192"
                   protocol="HTTP/1.1"
                   useBodyEncodingForURI="true"
                   redirectPort="8443"
                   acceptCount="100"
                   disableUploadTimeout="true"

                   scheme="https"
                   proxyName="jira-test.xxx.net"
                   proxyport="443" />
      <Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
              maxHttpHeaderSize="8192" SSLEnabled="true"
              maxThreads="150" minSpareThreads="25"
              enableLookups="false" disableUploadTimeout="true"
              acceptCount="100" scheme="https" secure="false"
              clientAuth="false" sslProtocol="TLS" useBodyEncodingForURI="true"/>
        -->

Please help, thanks. 

1 comment

josh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 17, 2017

The apache proxy instructions miss the fact that you need to set your ServerName directive to the fully qualified domain name that you're using. This is commented out by default in ssl.conf for apache.

 

ServerName jira-test.xxx.net:443

Thanks, i added that line to the ssl.conf file but error is still the same

internal.diagnostics.DiagnosticsServlet] DIAGNOSTICS: FAILED
com.atlassian.gadgets.dashboard.internal.diagnostics.UrlPortMismatchException: Detected URL port, '80', does not match expected port, '443'
 at com.atlassian.gadgets.dashboard.internal.diagnostics.Diagnostics.checkExpectedPort(Diagnostics.java:71)
 at com.atlassian.gadgets.dashboard.internal.diagnostics.Diagnostics.check(Diagnostics.java:33)

Any other advise? 

And just as FYI the page loads over HTTPS but some objects are unable to be displayed likely due to this error. 

josh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 17, 2017

Are you sure you changed this in the right place? The right virtualhost?

 

The ProxyPass and ProxyPassReverse directives should only be on the port 443 virtualhost. The port 80 virtualhost should only be used to forward users to port 443. Take a look at my answer on this question: https://community.atlassian.com/t5/Questions/Jira-Apache-ajp-proxy-redirect-to-https/qaq-p/583660#M50131

Comment

Log in or Sign up to comment