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

OpenKM has many interesting features, but requires some configuration process to show its full potential.
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.

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

Postby bcs112 » Mon Sep 08, 2008 9:46 am

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
bcs112
Junior Boarder
Junior Boarder
 
Posts: 25
Joined: Tue Apr 22, 2008 2:15 pm

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

Postby jllort » Mon Sep 08, 2008 11:42 am

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]
-------------------------------------------------
OpenKM Team ( be open my friend )
http://www.openkm.com
jllort
Moderator
Moderator
 
Posts: 6866
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain

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

Postby bcs112 » Mon Sep 08, 2008 12:52 pm

Thx, path names where slightly different on my Windows 2000 Server installation but appart from that it worked like a charm !

Björn
bcs112
Junior Boarder
Junior Boarder
 
Posts: 25
Joined: Tue Apr 22, 2008 2:15 pm

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

Postby pavila » Mon Sep 08, 2008 12:55 pm

The \"right way\" is exposing OpenKM through Apache (port 80) using the Proxy mod and perform a RedirectMatch.
OpenKM Team ( Be open, my friend! )
pavila
Moderator
Moderator
 
Posts: 2766
Joined: Tue Dec 11, 2007 6:02 pm
Location: Alicante, Spain

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

Postby jllort » Mon Sep 08, 2008 1:58 pm

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.
-------------------------------------------------
OpenKM Team ( be open my friend )
http://www.openkm.com
jllort
Moderator
Moderator
 
Posts: 6866
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain

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

Postby bcs112 » Mon Sep 08, 2008 2:06 pm

Hi,

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

Bjorn
bcs112
Junior Boarder
Junior Boarder
 
Posts: 25
Joined: Tue Apr 22, 2008 2:15 pm

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

Postby bcs112 » Tue Sep 09, 2008 2:19 pm

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
bcs112
Junior Boarder
Junior Boarder
 
Posts: 25
Joined: Tue Apr 22, 2008 2:15 pm

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

Postby pavila » Thu Sep 11, 2008 3:12 pm

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.
OpenKM Team ( Be open, my friend! )
pavila
Moderator
Moderator
 
Posts: 2766
Joined: Tue Dec 11, 2007 6:02 pm
Location: Alicante, Spain

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

Postby bcs112 » Fri Sep 12, 2008 7:44 am

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
bcs112
Junior Boarder
Junior Boarder
 
Posts: 25
Joined: Tue Apr 22, 2008 2:15 pm

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

Postby jllort » Fri Sep 12, 2008 2:39 pm

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 ).
-------------------------------------------------
OpenKM Team ( be open my friend )
http://www.openkm.com
jllort
Moderator
Moderator
 
Posts: 6866
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain

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

Postby kunalashar » Wed Apr 15, 2009 4:35 am

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.
kunalashar
Fresh Boarder
Fresh Boarder
 
Posts: 15
Joined: Thu Mar 26, 2009 7:32 am

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

Postby pavila » Thu Apr 16, 2009 8:56 pm

I have answered to the other thread.
OpenKM Team ( Be open, my friend! )
pavila
Moderator
Moderator
 
Posts: 2766
Joined: Tue Dec 11, 2007 6:02 pm
Location: Alicante, Spain

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

Postby thameema » Thu Jul 09, 2009 9:09 pm

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.
thameema
Fresh Boarder
Fresh Boarder
 
Posts: 1
Joined: Thu Jul 09, 2009 9:04 pm

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

Postby ajie » Thu Dec 17, 2009 2:48 am

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
ajie
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: Wed Dec 16, 2009 9:41 am


Return to Configuration

Who is online

Users browsing this forum: No registered users and 1 guest