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?
Any suggestion yet on what this problem is and how to fix it?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Need your Apache configs too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.