Setting up Crowd Behind Nginx Causes a Redirect Loop
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Problem
After setting up Crowd behind Nginx, logging in to Crowd causes a redirect loop between:
The login page (Example: https://yourcompany.com/crowd/console/login.action) and
The start page (Example: https://yourcompany.com/crowd/console/defaultstartpage.action) then again to
The login page
Cause
This might be caused by the configuration in Nginx side.
Crowd will redirect from login.action to defaultstartpage.action when a user successfully log in. However, it will redirect to login.action again if the browser sees that it doesn't have a cookie for the user.
There is a possibility that the cookie was generated for a wrong domain and therefore Crowd redirects to login page again.
Resolution
Try changing your parameters in Nginx's Configuration as below
Parameter | Recommended | Instead of |
---|---|---|
proxy_pass | ||
proxy_redirect | proxy_redirect off; | proxy_redirect http://yourcompany.com/ /; |
Add
address="127.0.0.1"
to the Connector definition in the server.xml file (The main one with the proxyName)
Was this helpful?