Jira Software 8.10.1 behind Reverse Proxy doesn't work

Joan Williamson January 21, 2021

A Reverse Proxy environment was set up for our Jira dev/test application but it is not working.  I created another connector in the server.xml file for the Reverse Proxy connection and Jira was restarted.  The reverse proxy team set up an environment for us as well.  I don't know what that configuration really entails though. 

I login to the RP environment and click the link for Jira and successfully get the Jira login screen presented.  But when I enter my credentials, Jira actually logs me in but immediately returns to the RP page with the Jira link.  If I click the link again and try to login, it indicates that I am already authenticated.  So, after the first login attempt it does log me in but does not proceed to the dashboard page.  Does anyone have any idea what could be missing?

2 answers

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 27, 2021

Without knowing what your proxy is, the best we can do is confirm what you have set up on the Jira side should work.

  • Is your "base url" set to the address the proxy presents to the clients?  (This one should not break your login, but would cause other issues, so it's worth knowing if you do have it to hand)
  • What, exactly, does the connector the proxy uses say?  This is the section in the <jira install>/conf/server.xml that starts with connector (please do obscure anything that you might worry about revealing in public)
  • What, exactly, does the context path attribute say?
  • Are you using SSL or not?

As an example of the sort of info I'm looking for here, copied and pasted (and obscured) from a working Jira behind an SSL proxy

  • Base url:  https://reddwarf.jupitermining.corp/jira
  • Connector:   <Connector port="8081" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
    maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
    maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"
    acceptCount="100" disableUploadTimeout="true" bindOnInit="false" secure="true" scheme="https"
    proxyName="reddwarf.jupitermining.corp" proxyPort="443"/>
  • Context:   <Context path="/jira" docBase="${catalina.home}/atlassian-jira" rel.....
  • SSL: Yes
Joan Williamson January 27, 2021

Yes, the base url is set properly.

  • Connector:   <Connector port="8443" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
    maxThreads="150" minSpareThreads="25" connectionTimeout="60000" enableLookups="false"
    maxHttpHeaderSize="8192" protocol="org.apache.coyote.http11.Http11NioProtocol" useBodyEncodingForURI="true"
    acceptCount="10" disableUploadTimeout="true" secure="true" scheme="https"
    proxyName="my.company.com" proxyPort="443"/>
  • Context:   <Context path="" docBase="${catalina.home}/atlassian-jira" rel.....
  • SSL: Yes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 27, 2021

Ok, there's absolutely nothing wrong on the Jira side of your settings.

So I am afraid it is the proxy setup.  It sounds like it is doing half the job, in that it is passing https://my.company.com requests back to the Jira server, but I do not think it is returning everything it should in the other direction. 

It's taking you back to its own landing page instead of doing the (reverse)proxy in full.

0 votes
Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 21, 2021

Hi @Joan Williamson 

Please contact your team for more information on the proxy and can we know what proxy you are using.

Here's the KB link for described issues as well
https://confluence.atlassian.com/jirakb/keep-getting-redirected-to-login-page-after-logging-in-user-s-login-token-got-rejected-upon-logging-in-800863634.html

Thanks,
Pramodh

Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 21, 2021
Joan Williamson January 21, 2021

I was informed that our proxy is custom software - no apache or IIS.

Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 21, 2021
Joan Williamson January 27, 2021

I changed the server.xml file to remove the secure=true as I wasn't sure whether this condition affected our environment or not but this had no effect on the results.  We do not need to configure an outbound proxy so this suggestion was not useful.

The issue is still not resolved.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.10.1
TAGS
AUG Leaders

Atlassian Community Events