Trying to access UpSource over https via IIS Reverse Proxy returns an empty page

I am currently trying to set up various Jetbrains services for use via https by using an IIS reverse proxy. The complete intended setup should looks somewhat like this:

TeamCity:           ->
YouTrack: ->
Hub:      ->
UpSource: ->

I have already gotten this to work, with some difficulty, for TeamCity and YouTrack by using the following configuration:

In IIS, I have a TeamCity website that serves  as a redirect. The web.config of that site currently looks as follows:

<?xml version="1.0" encoding="UTF-8"?>
                <clear />
                <rule name="Reverse Proxy to TeamCity" stopProcessing="true">
                    <match url="^teamcity/(.*)" />
                    <action type="Rewrite" url="{R:1}" />
                <rule name="Reverse Proxy to YouTrack" stopProcessing="true">
                    <match url="^youtrack/(.*)" />
                    <action type="Rewrite" url="{R:1}" />
                <rule name="Reverse Proxy to Hub" stopProcessing="true">
                    <match url="^hub/(.*)" />
                    <action type="Rewrite" url="{R:1}" />
                <rule name="Reverse Proxy to UpSource" stopProcessing="true">
                    <match url="^upsource/(.*)" />
                    <action type="Rewrite" url="{R:1}" />
                <rule name="Reverse Proxy to Collaboration General" stopProcessing="true">
                    <match url="(.*)" />
                    <action type="Rewrite" url="{R:1}" />

In addition, I have configured the following server variables as described in the documentation:




However, when trying to access UpSource via, all I get is an empty page titled "Upsource". No error message. Not even a Fav Icon. Accessing UpSource via still works as normal though.

I have also already tried running the following chain of commands:

upsource.bat stop
upsource.bat configure --listen-port 8081 --base-url
upsource.bat start --J-Dbundle.websocket.compression.enabled=false

However, that did just caused the problem to change to:

Problem accessing /bundle/starting. Reason:

Not Found
Powered by Jetty:// 9.3.20.v20170531

How can I set up UpSource to work like TeamCity and Hub are already doing?

Any help on this would be greatly appreciated.

1 comment
Comment actions Permalink

Okay, so thanks to a YouTrack support employee helping with a related YouTrack error, I was able to figure out the reason behind this issue.

The reason is this: When accessing UpSource via https using a path for the redirect, the path needs to be the same in both the http and https variants.

In short, this will not work: ->

But this will: ->

I got this to work by running the following configurational command on the upsource.bat in [InstDir]/bin:

upsource.bat configure --listen-port 9876 --base-url

Now I can at the very least connect to and log in to UpSource via https. There's still a problem, but since it's unrelated to the topic of this thread,  I will create a separate thread for it.


Please sign in to leave a comment.