SCM Base URL is not working as expected

Issue #839 resolved
Markit Devtools created an issue

Hi,

I have followed the below steps to change my base url to use http://server:8080/ only, without the repository URLs containing "/scm/".

  1. Remove (or rename) index.html in scm-server\var\webapp\docroot

  2. Open and edit scm-server\conf\server-config.xml

Rename the "contextPath" for the "scm-webapp" element to "/" Remove the <New id="docroot"> element with "contextPath"=/

  1. Remove the reference to "docroot" in <Set name="handler">

server-config.xml should have <New> and <Set> elements that look like: <New id="scm-webapp" class="org.eclipse.jetty.webapp.WebAppContext"> <Set name="contextPath">/</Set> <Set name="war"><SystemProperty name="basedir" default="."/>/var/webapp/scm-webapp.war</Set> </New>

<Set name="handler"> <New class="org.eclipse.jetty.server.handler.HandlerCollection"> <Set name="handlers"> <Array type="org.eclipse.jetty.server.Handler"> <Item> <Ref id="scm-webapp" /> </Item> </Array> </Set> </New> </Set>

But it still displays 404 error : HTTP ERROR 404

Problem accessing /scm. Reason:

Not Found

How can i resolve this ?Please help

Comments (3)

  1. Log in to comment