Running OpenEMM in different Contextpath

Use this forum for questions regarding installation, upgrading and configuration of OpenEMM

Moderator: moderator

qsthensel
Posts: 7
Joined: Fri Jan 07, 2011 1:53 pm

Running OpenEMM in different Contextpath

Post by qsthensel »

Hello,

i would like to host an tomcat website and OpemEMM on one server with apache in front and proxying access to openemm and the tomcat.
Is it possible to run openemm on http://localhost:8080/openemm instead of as the default application? So i could do a rewrite from http://official.url to /tomcatapp an then have to proxypass entrys for /tomcatapp and /openemm.
Without I have to redirect / to /tomcatapp, /tomcatapp to my tomcat an everything else to openemm wich would look a bit complicated. Would be much cleaner if openemm runs in it own context and not in the default root context.

Thanks and greetings!
maschoff
Site Admin
Posts: 2608
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Running OpenEMM in different Contextpath

Post by maschoff »

Of course, you can change the path to OpenEMM's Java (frontend) code, but you have to modify the URLs in emm.properties and cms.properties.

However, OpenEMM up to version 6.2 does not work with Tomcat. Only upcoming release 2011 will work with Tomcat.
OpenEMM Maintainer
qsthensel
Posts: 7
Joined: Fri Jan 07, 2011 1:53 pm

Re: Running OpenEMM in different Contextpath

Post by qsthensel »

Thank you for the fast answer!
I maybe did not explain it right.
I do not want to use openemm with tomcat. I want to use OpenEMM and tomcat independet from each other. My Tomcatapps serves should not work with openemm ist should just run on the same host doing something completly different from openemm.

I will try it by modify the both properties files.

Thank you!
maschoff
Site Admin
Posts: 2608
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Running OpenEMM in different Contextpath

Post by maschoff »

In this case either Tomcat or OpenEMM's resin have to run on a port different from 8080.
OpenEMM Maintainer
qsthensel
Posts: 7
Joined: Fri Jan 07, 2011 1:53 pm

Re: Running OpenEMM in different Contextpath

Post by qsthensel »

For sure. Thanks for clearing that. I have already set up tomcat on an different port.

Do I need to change the redirection URL in the database too?

By now I have changed in file /home/openemm/webapps/core/WEB-INF/classes/emm.properties
system.url=http://localhost:8080/openemm
and
ecs.server.url=http://localhost:8080/openemm

and in /home/openemm/webapps/core/WEB-INF/classes/cms.properties
cms.ccr.url=http://localhost:8080/openemm

But openemm is still available via http://localhost:8080 an not via http://localhost:8080/openemm
Post Reply