Changing base url in confluence 4.1 does not seems to work


I would like to access confluence through / hidden behind my webserver preferable even ssl protected.

- I had that working with the previeus confluence version by using apache proxy

First step is of course to change the base url in confluence general configuration. However after changing server base url from http://localhost:8090 to e.g. http://<mydomain>:8090/confluence I obeserved two problems:

1) the base url did not change (e.g. site still refering to http://<mydomain > not http://<mydomain>/confluence

2) the plugin administration page is telling me it can not access the plugin site (which it can as soon as I switch back to the original base url)

Both seems not OK to me



3 answers

The base URL has to be exactly like the one you have in your browsers URL-bar. If you access your Confluence and the address is http://<mydomain>/confluence then the base URL has to be exactly like this as well (without the port). If you use SSL encryption, then you should have even the "s" in the base URL - https://<mydomain>/confluence . If the URL matches the base URL, then the Universal Plugin Manager should work properly again as well.

The Problem as I see it is, you probably use a different URL to connect to Confleucne whether you are connecting from outside your LAN (i.e. through the webserver) to when you are connecting from the LAN directly. The solution would be to always connect through the webserver.

I hope this helps.

- Thomas

I have it working since some time now. I am using https://<mydomain>/confluence now. To get that working, I have setup apache virtualhost file to handel SSL and to proxy it to d to change settings in the the confluence Server.xml file.



#Apache virtual host

ProxyRequests Off
ProxyPreserveHost On

<Proxy *>
Require all denied

# The <Location> directive limits the scope of the enclosed directives by URL
<Location /confluence>
Require all granted
ProxyPass http://localhost:8090/confluence
ProxyPassReverse http://localhost:8090/confluence

#confluence server.xml

<?xml version="1.0"?>
-<Server shutdown="SHUTDOWN" port="8000"> -<Service name="Tomcat-Standalone"> <Connector port="8090" acceptCount="10" maxProcessors="5" minProcessors="1" useURIValidationHack="false" enableLookups="false" connectionTimeout="15000" scheme="https" protocol="HTTP/1.1" URIEncoding="UTF-8" proxyPort="443" proxyName="<mydomain>" RedirectPort="8443" className="org.apache.coyote.tomcat4.CoyoteConnector"/> -<Engine name="Standalone" defaultHost="localhost"> -<Host name="localhost" autoDeploy="false" unpackWARs="true" appBase="webapps"> -<Context useHttpOnly="true" reloadable="false" docBase="../confluence" path="/confluence">
<!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/ -->
<Manager pathname=""/> </Context> </Host> </Engine>
<!-- To run Confluence via HTTPS: * Uncomment the Connector below * Execute: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) with a password value of "changeit" for both the certificate and the keystore itself. * Restart and visit https://localhost:8443/ For more info, see -->

<!-- <Connector port="8443" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" SSLEnabled="true" URIEncoding="UTF-8" keystorePass="<MY_CERTIFICATE_PASSWORD>"/> -->
</Service> </Server>

# some updates I think

Thats how it is working now




After changing in base url, I am not able to access the confluenc wiki with new url. Still old url is working.

Old url : http//<serverName>:8080/pages

Changes url: http//

After change the url, i have restarted the Confluence service and tried to hit changed url,but not working. When I hit old url then confluence is working. I can not see any where the existing url in any config file/database/baseurl....everwhere changed url is visible, But still why my Confluence is pointing old url???

Please let know the steps to change url for Confluence Wiki and also let me know where I am missing?



Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Asked 2 hours ago in Confluence

What are the resources that you use to learn more about Atlassian Products?

I am gathering information about resources available for Atlassian product knowledge transferring for a presentation in our local Atlassian User Group. I want to group them in four categories From ...

24 views 2 3
View question

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