Hi,
Yes there is a way. It is not a good idea to change the context url in
the reverse proxy. A better way is to change the context path in the
conf/scm-server.xml:
- Search the following lines:
<New id="scm-webapp" class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="contextPath">/scm</Set>
<Set name="war"><SystemProperty name="basedir"
default="."/>/var/webapp/scm-webapp.war</Set>
</New>
- And replace them with:
<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>
- Search the following lines:
<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>
<Item>
<Ref id="docroot" />
</Item>
</Array>
</Set>
</New>
</Set>
- and replace them with:
<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>
After that you could change your reverse proxy configuration to the following;
ProxyPass /
http://localhost:8080/
ProxyPassReverse /
http://localhost:8080/
ProxyPassReverseCookiePath /
http://localhost:8080/
Sebastian
2012/8/30 Arvind <
arvind...@gmail.com>: