Page 1 of 1

Redirect localhost:8080 -> localhost:8080/OpenKM ?

PostPosted:Mon Sep 08, 2008 9:46 am
by bcs112
Hi,

Is it possible to avoid users seeing the JBoss index page when the login to the port 8080 and simply redirect any calls to that page to directly go to the OpenKM login page ?

Thanks,
Björn

Re:Redirect localhost:8080 -> localhost:8080/OpenK

PostPosted:Mon Sep 08, 2008 11:42 am
by jllort
Yes,

You must change some configuration parameter on jboss indicating than default context on jboss is /OpenKM/

Try it:
1- Add file index.jsp on default/deploy/jbossweb-tomcat55.sar/ROOT.war/
2- Modify file on default/deploy/jbossweb-tomcat55.sar/ROOT.war/WEB-INF/web.xml adding welcome file <welcome-file>index.jsp</welcome-file>
3- Modify default/deploy/jbossweb-tomcat55.sar/conf/web.xml
Changing the order index.jsp might be the first on the list ( the welcome web.xml it\'s at end\'s file)

<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
</welcome-file-list>

I\'ve attached the index.jsp file you might need [file name=index.zip size=287]http://www.openkm.com/images/fbfiles/files/index.zip[/file]

Re:Redirect localhost:8080 -> localhost:8080/OpenKM ?

PostPosted:Mon Sep 08, 2008 12:52 pm
by bcs112
Thx, path names where slightly different on my Windows 2000 Server installation but appart from that it worked like a charm !

Björn

Re:Redirect localhost:8080 -> localhost:8080/OpenKM ?

PostPosted:Mon Sep 08, 2008 12:55 pm
by pavila
The \"right way\" is exposing OpenKM through Apache (port 80) using the Proxy mod and perform a RedirectMatch.

Re:Redirect localhost:8080 -> localhost:8080/OpenK

PostPosted:Mon Sep 08, 2008 1:58 pm
by jllort
probably it configuration was referred about jboss 4.1.SP1 version and is not exact that 4.2.2 which comes with last OpenKM.

About what says pavila, is ok, if you\'ve got an apache installed the best solution is using mod proxy redirection.

Re:Redirect localhost:8080 -> localhost:8080/OpenK

PostPosted:Mon Sep 08, 2008 2:06 pm
by bcs112
Hi,

We have Apache running on the same server, how could I set up the redirect via Apache ?

Bjorn

Re:Redirect localhost:8080 -> localhost:8080/OpenK

PostPosted:Tue Sep 09, 2008 2:19 pm
by bcs112
OK, so I have added an \"Alias\" to the Apache server, redirecting calls to the mydomain/OpenKM directory to the correct path for running OpenKM.

I get to the correct path but... the application isn\'t really running it seems. I can view the index.html page but the index.jsp page simply returns the raw text file, no server side \"thinking\" is performed.

Any more tips to get this to work ?

Björn

Re:Redirect localhost:8080 -> localhost:8080/OpenK

PostPosted:Thu Sep 11, 2008 3:12 pm
by pavila
Mod proxy only seems works with Apache 2.2.8 , if you use an older Apache, try mod_jk. See Apache documentation for more info.

Re:Redirect localhost:8080 -> localhost:8080/OpenK

PostPosted:Fri Sep 12, 2008 7:44 am
by bcs112
Basically what I want to do is open up OpenKM to users over the internet. Until now this has been impossible. We have a dyndns.org account and I can use that to enter via our intranet, but internet users are blocked for some reason.

Is there some JBoss setting that I need to change ?

Björn

Re:Redirect localhost:8080 -> localhost:8080/OpenK

PostPosted:Fri Sep 12, 2008 2:39 pm
by jllort
Seems to be some network configuration problem with firewall or problem with NAT on router. Really if you can access with other computer on network to OpenKM server you must discart any problem on OpenKM configuration server and try to find on network ( sure ).

Re:Redirect localhost:8080 -> localhost:8080/OpenKM ?

PostPosted:Wed Apr 15, 2009 4:35 am
by kunalashar
Hello Pavila,
Are there detailed instructions anywhere about how to configure Apache to do this?
I posted this question in this forum at Using OpenKM with Apache, 5 days ago, but got no response.

Any help would be appreciated.
Thanks in advance.

Re:Redirect localhost:8080 -> localhost:8080/OpenKM ?

PostPosted:Thu Apr 16, 2009 8:56 pm
by pavila
I have answered to the other thread.

Re:Redirect localhost:8080 -> localhost:8080/OpenKM ?

PostPosted:Thu Jul 09, 2009 9:09 pm
by thameema
I have configured the apache, virtualhost, openKM but still the following issues exist.

1. Images are broken due to apache redirect
2. After login, i am getting error and its asking me to logout. The error message is unable to get the root node etc

Here is my configuration:
<VirtualHost *:8080>
ServerAdmin me@localhost
DocumentRoot /opt/OpenKM-3.0_JBoss-4.2.2.GA/server/default/deploy
RewriteEngine on
ProxyPass / http://localhost:8081/OpenKM/
ProxyPassReverse / http://localhost:8081/OpenKM/
ServerName myserver.localtest
ErrorLog logs/dms-error_log
CustomLog logs/dms-access_log common
</VirtualHost>
The document root is just a dummy value and it can\'t be anything.

Re: Redirect localhost:8080 -> localhost:8080/OpenKM ?

PostPosted:Thu Dec 17, 2009 2:48 am
by ajie
I thinks this is the simple way ..

just add this add index.html to your HEAD section

<meta http-equiv="REFRESH" content="0;url=http://yourdomain/OpenKM">

Regards all

:D