• change context path

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #43436  by greengold
 
Hi,
I'm trying to change context path of OpenKM in it's tomcat7 bundle.

What I did is that I created OpenKM.xml in ${catalina.home}/conf/Catalina/localhost with the following content:
Code: Select all
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<Context deployOnStartup="true" docBase="${catalina.home}/webapps/OpenKM" path="/OneDMS" reloadable="true">
    <Manager pathname=""/>
</Context>
but I can still access OKM just on the path 'localhost:8080/OpenKM/login.jsp' NOT on the '...8080/OneDMS/login.jsp'
so the question is: how to set this properly?

Thank you!
 #43437  by greengold
 
okey, I corrected that to:
Code: Select all
<Context deployOnStartup="true" docBase="OpenKM/" path="/OneDMS" reloadable="false">
    		<Manager pathname=""/>
</Context>
in server.xml

but I'm getting this when I go to [host:port]/OneDMS :
Image
http://imgur.com/a/igic5 ...then when I hit return to redirects to /OpenKM and proceeds well...
 #43443  by greengold
 
good suggestion.
however configuration in the link works partially: I am able to browse the login site under url Proxy url I have set, but when I try to login it redirects me back to the .../OpenKM/... url.
Code: Select all
<VirtualHost *:80>
  ServerName openkm.your-domain.com

  ProxyPass /OneDMS ajp://localhost:8009/OpenKM
  ProxyPassReverse /OneDMS http://localhost:8080/OpenKM

  ErrorLog /var/log/apache2/your-domain.com-error.log
  CustomLog /var/log/apache2/your-domain.com-access.log combined

  RewriteEngine on
  RewriteCond %{REQUEST_URI} /OpenKM*
  RewriteRule ^(/.*)$ http://localhost:8080$1 [P]

  RequestHeader edit X-GWT-Module-Base ^(http://onedms.com)/frontend/(.*)$ $1/OpenKM/frontend/$2
</VirtualHost>
 #43448  by jllort
 
Might be the key is to apply some change here ( look at redirectmach ):
Code: Select all
RedirectMatch ^/OpenKM/$ /frontend

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.