oracle / opengrok

OpenGrok is a fast and usable source code search and cross reference engine, written in Java
http://oracle.github.io/opengrok/
Other
4.36k stars 748 forks source link

How can I change service url? #933

Closed verascone closed 5 years ago

verascone commented 9 years ago

Hello.

I want to change url of opengrok webapp from source to my.

  1. I changed war file name. source.war --> my.war
  2. I add variable into OpenGrok file. OPENGROK_WEBAPP_CONTEXT="my"
  3. I deployed and indexed it but it doesn't work correctly When I click link in a particular file the following messasge appears.

type Status report message /source/s description The requested resource is not available.

This is redirected url. '/source/' part has not changed into '/my/'. http://my_url.com/source/s?refs=BuildData&project=src

How can I change service url properly? Please let me know.

Thank you.

tarzanek commented 9 years ago

OPENGROK_WEBAPP_CONTEXT="my" OpenGrok index ... should create proper xrefs ... I will try to validate, but that code didn't change recently ...

tulinkry commented 5 years ago

Solution given and no reaction for years. A candidate for closing

vladak commented 5 years ago

The solution is actually much easier now - just deploy the renamed WAR file.