I'm in the process of migrating our installation of Jetbrains Hub/YouTrack/TeamCity from one machine to three different ones. Today they currently run on the same machine, but on different ports and an IIS with rewrite-rules to enable SSL-traffic.
What we want to do is to have them run on one machine each, with different domainnames (youtrack.domain.com, hub.domain,com, teamcity.domain.com).
I took a backup from both the Hub and YouTrack and successfully installed them on their respective machine. YouTrack required the old installation of the Hub to be active for the installation before I could swith over to the new one. I have an IIS-instance in front of both applications to use SSL.
Everything seems to be working just as planned, until I try to login to YouTrack.
I'm going to the url: https://youtrack.domain.com and it starts to load. It adds /oauth?state=%2F to the url and thinks for about 20 seconds and then I get this url: https://hub.domain.com/oauth#access_token=... with this message:
HTTP ERROR: 404
Problem accessing /oauth. Reason:
If I replace the word hub in the uri with youtrack, I get access to YouTrack as if the login work perfectly.
I have tried to google for similar issues with no luck.
I've checked the Service-settings in the hub where the field Home URL contains https://youtrack.domain.com
The list of Redirect URIs fills up with a bunch of different values, non that starts with hub. I do have ./oauth and /oauth but clearing the list and try again have not been successful.
Is there anyone that has any tips on what to do next? What I can look for?