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!
Running OpenEMM in different Contextpath
Moderator: moderator
-
- Site Admin
- Posts: 2628
- Joined: Thu Aug 03, 2006 10:20 am
- Location: Munich, Germany
- Contact:
Re: Running OpenEMM in different Contextpath
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.
However, OpenEMM up to version 6.2 does not work with Tomcat. Only upcoming release 2011 will work with Tomcat.
OpenEMM Maintainer
Re: Running OpenEMM in different Contextpath
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!
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!
-
- Site Admin
- Posts: 2628
- Joined: Thu Aug 03, 2006 10:20 am
- Location: Munich, Germany
- Contact:
Re: Running OpenEMM in different Contextpath
In this case either Tomcat or OpenEMM's resin have to run on a port different from 8080.
OpenEMM Maintainer
Re: Running OpenEMM in different Contextpath
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
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