How to change Base URL?

Deleted user March 2, 2015

Hi,

I have been reading a lot of posts regarding how to change the Base URL but as I am quite new to this I allow myself to ask (to be on the safe side)

We have Confluence and JIRA installed on https://dev.<company>.com/confluence and https://dev.<company>.com/jira

We want to change the URL's to https://wiki.<company>.com and https://jira.<company>.com

As far as I can understand this is what I need to do. Correct?

  1. Change DNS
  2. Log in and change BASE URL's
  3. Edit server.xml

Do I need to edit the bandanakey aswell or would step 2 take care of that?

 

Thanks in advance!

 

Rgds

Thomas

3 answers

1 accepted

2 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 2, 2015

That looks right to me, you do not need to mess with databases or anything like that.  DNS and the base url via the admin GUI are enough.

Except... if you have used application links, you'll want to update those as well (again via the gui).  And any other applications that are pointed to JIRA or Confluence.

1 vote
Deleted user March 10, 2015

Found the error. I also had to edit this parameter in confluence.cfg.xml 

&lt;property name="confluence.webapp.context.path"&gt;/confluence&lt;/property&gt;

When changed to

&lt;property name="confluence.webapp.context.path"&gt;/&lt;/property&gt;

it all works smile

1 vote
Deleted user March 4, 2015

Unfortunately I ran into some issues trying to do this now. I changed base url and removed application links between the two servers before starting. I also changed server.xml from the old to the new as shown below. When trying the new link https://wiki.<company>.com I just received a 404 from the old address https://dev.<company>.com/confluence (same for jira). We are using a Netscaler frontend which routes calls to our Nginx. Nginx has also been edited to reflect the change but no success I am afraid. Suggestions much appreciated.

&lt;Server port="8000" shutdown="SHUTDOWN" debug="0"&gt;
    &lt;Service name="Tomcat-Standalone"&gt;
        &lt;Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8090" minProcessors="5"
                   maxProcessors="75"
                   enableLookups="false" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="20000"
                   SSLEnabled="false"
                   scheme="https"
                   secure="true"
                   proxyName="dev.&lt;company&gt;.com" 
                   proxyPort="443"
                   useURIValidationHack="false" URIEncoding="UTF-8"/&gt;

        &lt;Engine name="Standalone" defaultHost="localhost" debug="0"&gt;

            &lt;Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false"&gt;

                &lt;Context path="/confluence" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true"&gt;
                    &lt;!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties --&gt;
                    &lt;Manager pathname="" /&gt;
                &lt;/Context&gt;
            &lt;/Host&gt;

        &lt;/Engine&gt;
&lt;Server port="8000" shutdown="SHUTDOWN" debug="0"&gt;
    &lt;Service name="Tomcat-Standalone"&gt;
        &lt;Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8090" minProcessors="5"
                   maxProcessors="75"
                   enableLookups="false" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="20000"
                   SSLEnabled="false"
                   scheme="https"
                   secure="true"
                   proxyName="wiki.&lt;company&gt;.com" 
                   proxyPort="443"
                   useURIValidationHack="false" URIEncoding="UTF-8"/&gt;

        &lt;Engine name="Standalone" defaultHost="localhost" debug="0"&gt;

            &lt;Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false"&gt;

                &lt;Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true"&gt;
                    &lt;!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties --&gt;
                    &lt;Manager pathname="" /&gt;
                &lt;/Context&gt;
            &lt;/Host&gt;

        &lt;/Engine&gt;

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events