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

Menso Heus October 8, 2014

We have Confluence installed behind an Apache proxy and there is a redirect from http to https, so we always use an https connection.

The problem we have is that when we go to  Manage add-ons there is a banner which says: "The base URL configuration of your instance does not match the URL in your browser. This can prevent operations on this page from working correctly. See UPM documentation for more details about this error."

The base url is set to https://domainname of the site and in the server.xml I have added: 
proxyName="domainname" proxyPort="443" scheme="https" secure="true"
I would think that this is exactly how it should be. So what is wrong?

Strangely enough, when I enter http://domainname as the base url, so not https, the message disappears. But that seems wrong.

Should I just use http instead of https and not worry about it? Or will this bit me in the behind in the near future?

4 answers

0 votes
Menso Heus October 21, 2014

Any suggestion yet on what this problem is and how to fix it?

0 votes
Tiago Comasseto
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 9, 2014

Hi Roelof, this excerpt called my attention:

Strangely enough, when I enter http://domainname as the base url, so not https, the message disappears.

So that means you can access Confluence either via http and https, is that right? That's strange, since you mentioned that you have a redirect from http to https.

Also, when using the following parameters in your server.xml you would have being redirected to the https URL: proxyName="domainname" proxyPort="443" scheme="https" secure="true"

Have you restarted the application after adding those parameters?

Cheers

Menso Heus October 9, 2014

When you access the server via http then Apache redirects it directly to https. Only then does it proxy to Confluence. So you can only access Confluence via https. That exactly is why it seems so strange to me that http as the base url would work but not https.

Somewhere there must be a error in a syntax, but I have no idea where.

And yes, every time I change the server.xml or any of the Confluence files I restart the application server.

0 votes
Menso Heus October 8, 2014

Sorry. There are two configs. One is just a rewrite from port 80 to 443. The other is a SSL proxy with config: ProxyRequests Off ProxyPreserveHost On ProxyPass / http://localhost:8090/ ProxyPassReverse / http://localhost:8090/ Is that enough?

0 votes
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 8, 2014

Need your Apache configs too.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events