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

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 vote
Timothy Chin Community Champion Oct 08, 2014

Need your Apache configs too.

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?

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

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.

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

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

309 views 11 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you