Hi.,
I have migrated and upgraded crowd (from 2.11.2 to 4.0.0V) from old to new server.
For users access purpose, I have updated the user directories with http://IPAddress:8095/crowd/ in JIRA, Confluence, Bitbucket and Bamboo.
Old Server URL: https://tech.prod.companyname.com/crowd/
Now, I’m planning to redirect Old server URL to new server and permanently shutdown the old server.
Can you please suggest us. How to redirect the same URL from old to new server.
You should not use an HTTP redirect for Crowd application integration. Instead, keep the same old public URL and make it point to the new Crowd server, usually by DNS change or reverse proxy/load balancer routing.
Your target should be:
continuing to serve the new Crowd 4.0.0 instance.
Update DNS or load balancer so:
resolves/routes to the new Crowd server.
This is better than asking Jira, Confluence, Bitbucket, and Bamboo to use:
because Atlassian apps are sensitive to base URL, proxy, and XSRF/origin consistency. Atlassian’s Crowd proxy guidance says Crowd’s base URL should match the proxy name configured in server.xml. [support.at...assian.com]
In Crowd 4, set the base URL to:
Atlassian’s Crowd NGINX proxy document says that for normal Crowd operation, the base URL should match the proxyName value configured in server.xml, and in Crowd 3.0 and later this can be configured from Cog icon > General. [support.at...assian.com]
server.xml on the new Crowd serverEdit:
For HTTPS through a proxy/load balancer, your connector should include something like:
Atlassian’s Crowd NGINX proxy example shows adding proxyName, proxyPort, and scheme to the Tomcat connector, with the proxy name matching the public host used by users. [support.at...assian.com]
Then restart Crowd.
If using NGINX, conceptually it should proxy the public Crowd URL to the new server:
Atlassian’s Crowd NGINX article shows proxying requests to Crowd’s internal Tomcat port and setting headers such as Host, X-Real-IP, and X-Forwarded-For. [support.at...assian.com]
If Crowd is behind a proxy, configure Crowd to trust the proxy server. Atlassian explains that when a proxy forwards a request, trusted proxy configuration lets Crowd recognize the original client IP rather than only the proxy’s IP. [confluence...assian.com]
In Crowd:
Add the proxy/load balancer IP or hostname.
In each application’s Crowd user directory configuration, use:
rather than:
This keeps one stable Crowd URL for browser access, REST calls, and application integrations.
Do not rely on a simple 301 or 302 redirect from:
to:
That can cause problems with authentication, cookies, XSRF checks, SSL expectations, and application integration. Atlassian notes that XSRF issues can occur when the request origin does not match the target, and recommends using the exact base URL and correct proxy settings. [support.at...assian.com]
Best setup:
After this works, you can permanently shut down the old server.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.