Page 1 of 1

Change OpenKM URL / default directory TOMCAT

PostPosted:Thu Aug 01, 2013 8:15 am
by kknd
Hi me again :D

I am trying to change the URL http://localhost:8080/OpenKM/ to http://localhost:8080/ unsuccessfully : (

I edit the \tomcat\conf\server.xml add lines
Code: Select all
<Host name="localhost"  appBase="webapps" unpackWARs="true" autoDeploy="true">
<Context path="" docBase="openkm"></Context>
and I receive:
http://localhost:8080/j_spring_security_check
Image

Any tips?

Re: Change OpenKM URL / default directory TOMCAT

PostPosted:Fri Aug 02, 2013 11:59 am
by kknd
I found a little way to put to work,

in .\tomcat\webapps\ROOT creat new file "index.html" with this content:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="pt-BR">
 <head>
  <title>OpenKM</title>
  <link rel="Shortcut icon" href="favicon.ico" />
  <style type="text/css">
   html, body, div, iframe { margin:0; padding:0; height:100%; }
   iframe { display:block; width:100%; border:none; }
  </style>
 </head>
 <body>
  <div>
   <iframe src="./OpenKM">
    <p><a href="./OpenKM">OpenKM</a></p>
   </iframe>
  </div>
 </body>
</html>  
Image

Re: Change OpenKM URL / default directory TOMCAT

PostPosted:Mon Aug 05, 2013 7:56 am
by jllort
I think you'll get some minal problems with it. For example links to open some document by url like http://your_ip/OpenKM/index.jsp?uuid=etc..... will not going right with this kind of configuration. Except these minor defect embed OpenKM into and iframe should not get problems.