Skip to content

Deploying OpenWayback in non ROOT Context

Lauren Ko edited this page Jun 3, 2015 · 9 revisions

OpenWayback by default assumes deployment as ROOT context (ROOT.war) with an AccessPoint called wayback. The default URL for accessing OpenWayback is: http://localhost:8080/wayback/.

OpenWayback can also be installed in a non-ROOT context (e.g. mycontext). For this wayback.xml needs to be configured to accordingly. The default AccessPoint URL would then be http://localhost:8080/mycontext/wayback/.

Configuring wayback.xml for deployment in a non-ROOT context

Edit wayback.xml as follows to add wayback.url.context and change the wayback.url.prefix.default to include mycontext:

  <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="properties">
      <value>
        ...
        wayback.url.scheme=http
        wayback.url.host=localhost
        wayback.url.port=8080
        wayback.url.context=mycontext
        ...

        wayback.url.prefix.default=${wayback.url.scheme}://${wayback.url.host}:${wayback.url.port}/${wayback.url.context}

      </value>
    </property>
  </bean>

Then in the AccessPoint bean in wayback.xml, change the accessPointPath:

  <bean name="standardaccesspoint" class="org.archive.wayback.webapp.AccessPoint">
    <property name="accessPointPath" value="/wayback/"/>
    ...

Restart Tomcat.