How to configure SCM Manager at / (root url)

1,905 views
Skip to first unread message

Brian Chavez

unread,
Jun 10, 2012, 2:39:50 PM6/10/12
to scmma...@googlegroups.com
Hi,

I'm trying to setup SCM Manager to use http://server:8080/ only, without the repository URLs containing "/scm/".

I would like to know if it is possible to setup the repository URLs to look like:



Please let me know.

Thank you,
Brian

Brian Chavez

unread,
Jun 10, 2012, 2:48:08 PM6/10/12
to scmma...@googlegroups.com
Also,

I tried to configure the "Base Url" to "http://server:8080" but making a request to "http://server:8080/svn/myproject" is 404.

And, "Force Base Url" enabled/disabled really do anything to help as far as I can tell.

Many thanks for your help.
Brian

Brian Chavez

unread,
Jun 10, 2012, 4:30:49 PM6/10/12
to scmma...@googlegroups.com
Okay, after some play, here is how:

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"=/

3. 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>

Hope that helps anyone who is looking to do the same.

Now you should be able to access your repositories directly:


Awesome.

Thanks,
Brian




On Sunday, June 10, 2012 11:39:50 AM UTC-7, Brian Chavez wrote:
On Sunday, June 10, 2012 11:39:50 AM UTC-7, Brian Chavez wrote:
On Sunday, June 10, 2012 11:39:50 AM UTC-7, Brian Chavez wrote:
On Sunday, June 10, 2012 11:39:50 AM UTC-7, Brian Chavez wrote:
On Sunday, June 10, 2012 11:39:50 AM UTC-7, Brian Chavez wrote:
Reply all
Reply to author
Forward
0 new messages