Confluence Base URL Should Match But Does Not
Asked by Chris Wood:

Hi,

On the manage add-ons page I receive the following message:

The base URL configuration of your instance does not match the URL in your browser

On the application links page I see the following error in the console:

'[](http://localhost:8096/intranet/plugins/servlet/applinks/auth/conf/trusted/inbound-ual/c47481a7-bb4a-3840-9813-57174fa7aabf "http://localhost:8096/intranet/plugins/servlet/applinks/auth/conf/trusted/inbound-ual/c47481a7-bb4a-3840-9813-57174fa7aabf")<http://localhost:8096/intranet/plugins/servlet/applinks/auth/conf/trusted/inbound-ual/c47481a7-bb4a-3840-9813-57174fa7aabf>': this content should also be loaded over HTTPS.

The base URL is set properly in the confluence admin under general configuration to [](https://domain.com/intranet)<https://domain.com/intranet>- confluence works fine everywhere else but I am trying to setup an application link to JIRA and going into the configure link it seems to pulling the original base URL when I did the initial confluence install. As such certain pop-up windows do not dispaly in the application link.

Is there another spot I need to change update the base URL?

Thank you.

Chris


Answers:
author: Chris Wood
body: Hi Chris

If you're running Confluence behind Apache, then you may need to set the URL for redirection in the *{install}\\conf\\server.xml* file.

See [](https://confluence.atlassian.com/display/DOC/Using+Apache+with+mod_proxy)<https://confluence.atlassian.com/display/DOC/Using+Apache+with+mod_proxy>for more details.

Look at the section which describes setting the proxyName, proxyPort and scheme attributes to the connector tag

e.g.

```
&lt;Connector
```

```
...
```

```
proxyName="domain.com" proxyPort="443" scheme="https"
```

```
...
```

```
/&gt;
```

comments: author: Chris Wood
body: Thanks so much Ian!

The line to append to the connector which resolved the issue was:

proxyName="www.domain.com" proxyPort="443" scheme="https" secure="true"


author: Deividi Luvison
body: Hi Chris,

Let's first divide to conquer, because you have two behaviours in here, first is the base URL and the second one is the application link setup.

Regarding the base URL I can see you are running Confluence over HTTPS, could you confirm me if you followed [this](https://confluence.atlassian.com/display/DOC/Running+Confluence+Over+SSL+or+HTTPS) KB to configure the HTTPS?

For the application link you need to make sure that you are able to reach Confluence from JIRA application server and vice and versa. In your errorin the application links page is complaining about the address [](http://localhost:8096,)<http://localhost:8096>, so if your applications are in diferent servers that will not work.

So try to reach each application from its application server using the base URL.

Besides confirming the above also let me know if that localhost:8096 belong to Confluence or JIRA, so we might have a clue of your scenario.  
Thanks and Regards,  
David\|Atlassian Support

comments: author: Chris Wood
body: Hi Deividi,

Thanks for looking into this. The setup is as follows:

Confluence -\> 5.2.3 -\> localhost:8096

JIRA -\> 6.1.5 -\> localhost:8082

Both are connected to crowd to sync users to an AD server.

We run apache infront of both products as the root website already hosted for the domain, so both JIRA and Confluence have had their context path updates to /jira and /intranet and reverse proxies vhosts entries created.

ProxyPass /jira ajp://localhost:8082/jira

ProxyPassReverse /jira ajp://localhost:8082/jira

ProxyPass /intranet <http://localhost:8096/intranet>

ProxyPassReverse /intranet <http://localhost:8096/intranet>

The SSL certificate is configured in Apache, not sure what part of the KB article applies to us.

The manage add-ons is the only part of the site which displays an error about the base URL. All of the links in confluence are OK and uploading add-ons seems to be OK.

This morning I went to setup an application link between JIRA and Confluence which appeared to have been created correctly but when I was logged into Confluence and went to JIRA it asked me to login again, which I thought was strange. So I went into the CYBF JIRA application link created in the confluence back-end and it started giving warnings, which appeared to be related to the base URL.

Please let me know if there is any other information I can provide.

Thanks,

Chris


author: Deividi Luvison
body: Can you send a screenshot of tha error?


author: Chris Wood
body: Attached below.

![](../../upfiles/error_1_3.png)


Tags: confluence-administration