<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">I believe you can only have two
distinct OpenCms installations when you use<br>
different databases, e.g. opencms1, opencms2<br>
and do two installations on them. Also got to watch for the port
numbers to be different.<br>
Ah yes, the root should be different either.<br>
<br>
But generally it should work with properly setting up the
connectors etc.<br>
<br>
I'm not sure if it's that what you mean or if you only want to
have different<br>
hosts and sites. You can manage (site manager or edit
opencms-system.xml <sites><br>
to manage different hosts in one workplace.<br>
<br>
Am 21.04.2015 um 13:19 schrieb <a class="moz-txt-link-abbreviated" href="mailto:Manoj.Sharma@nevagroup.com">Manoj.Sharma@nevagroup.com</a>:<br>
</div>
<blockquote
cite="mid:OFAB88661F.CA851DD7-ON86257E2E.003D01C1-65257E2E.003D95E4@nevagroup.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<font face="sans-serif" size="2">Hi All,</font>
<br>
<font face="sans-serif" size="2">
I have perform two separate installation of opencms one i have
done already
and running successfully. But when i have done second
installation on same
tomcat it runs but sharing the resources with first one and also
when try
to login as admin into workplace first one working but in second
i am getting
</font><font color="#2f2f2f" face="Verdana" size="1">"Your session
has
expired. Please log in again.</font><font size="3">" and i am
not able
to login into workplace and second installation also using first
installation
resources like css not its own. i have done these installation
in windows
environment but the production in on linux VPS. below are the
configuration
file that i have changed to run these site on local system.</font>
<br>
<br>
<font size="3">httpd.conf</font>
<br>
<br>
<font size="3"><VirtualHost *:80> </font>
<br>
<font size="3"> <Directory "C:/Tomcat 8.0/webapps/ROOT/">
</font>
<br>
<font size="3"> Order allow,deny </font>
<br>
<font size="3"> Allow from all </font>
<br>
<font size="3"> </Directory> </font>
<br>
<font size="3"> ProxyPreserveHost On</font>
<br>
<font size="3"> ServerName testopencms.lan</font>
<br>
<font size="3"> ServerAdmin <a class="moz-txt-link-abbreviated" href="mailto:webmaster@alkacon.com">webmaster@alkacon.com</a> </font>
<br>
<font size="3"> DocumentRoot "C:/Tomcat 8.0/webapps/ROOT/"
</font>
<br>
<font size="3"> ErrorLog logs/error.log </font>
<br>
<font size="3"> </font>
<br>
<font size="3"> # Log only non-redirect requests in "normal"
log file </font>
<br>
<font size="3"> SetEnvIf Request_URI "\/opencms\/*"
redirect </font>
<br>
<font size="3"> CustomLog logs/localhost-access.log common
env=!redirect </font>
<br>
<font size="3"> </font>
<br>
<font size="3"> ProxyPass /opencms/ ! </font>
<br>
<font size="3"> RedirectPermanent /opencms/ </font><a
moz-do-not-send="true" href="http://testopencms.lan/"><font
size="3">http://testopencms.lan/</font></a>
<br>
<br>
<font size="3"> RewriteRule .* </font><a
moz-do-not-send="true"
href="http://127.0.0.1:8080/opencms/handle404?exporturi=%"><font
size="3">http://127.0.0.1:8080/opencms/handle404?exporturi=%</font></a><font
size="3">{REQUEST_URI}&%{QUERY_STRING}
[P]</font>
<br>
<br>
<font size="3"> ProxyPass /resources/
!</font>
<br>
<font size="3"> ProxyPass /export/
!</font>
<br>
<font size="3"> </font>
<br>
<font size="3"> ProxyPass /
</font><a moz-do-not-send="true"
href="http://127.0.0.1:8080/opencms/"><font size="3">http://127.0.0.1:8080/opencms/</font></a><font
size="3">
</font>
<br>
<font size="3"> ProxyPassReverse /
</font><a moz-do-not-send="true"
href="http://127.0.0.1:8080/opencms/"><font size="3">http://127.0.0.1:8080/opencms/</font></a><font
size="3">
</font>
<br>
<font size="3"> </font>
<br>
<font size="3"></VirtualHost></font>
<br>
<br>
<font size="3"><VirtualHost *:80> </font>
<br>
<font size="3"> <Directory "C:/Tomcat 8.0/webapps/TEST/">
</font>
<br>
<font size="3"> Order allow,deny </font>
<br>
<font size="3"> Allow from all </font>
<br>
<font size="3"> </Directory> </font>
<br>
<font size="3"> ProxyPreserveHost On</font>
<br>
<font size="3"> ServerName test.testopencms.lan</font>
<br>
<font size="3"> ServerAdmin <a class="moz-txt-link-abbreviated" href="mailto:webmaster@alkacon.com">webmaster@alkacon.com</a> </font>
<br>
<font size="3"> DocumentRoot "C:/Tomcat 8.0/webapps/TEST/"
</font>
<br>
<font size="3"> ErrorLog logs/error.log </font>
<br>
<font size="3"> </font>
<br>
<font size="3"> # Log only non-redirect requests in "normal"
log file </font>
<br>
<font size="3"> SetEnvIf Request_URI "\/TEST\/*"
redirect </font>
<br>
<font size="3"> CustomLog logs/localhost-access.log common
env=!redirect </font>
<br>
<font size="3"> </font>
<br>
<font size="3"> ProxyPass /TEST/opencms/ !
</font>
<br>
<font size="3"> RedirectPermanent /TEST/opencms/ <a class="moz-txt-link-freetext" href="http://">http://</a>
test.testopencms.lan/TEST/opencms/</font>
<br>
<br>
<font size="3"> </font>
<br>
<br>
<font size="3"> ProxyPass /TEST/opencms/resources/
!</font>
<br>
<font size="3"> ProxyPass /TEST/opencms/export/
!</font>
<br>
<font size="3"> </font>
<br>
<font size="3"> ProxyPass /
</font><a moz-do-not-send="true"
href="http://127.0.0.1:8081/TEST/opencms/"><font size="3">http://127.0.0.1:8081/TEST/opencms/</font></a><font
size="3">
</font>
<br>
<font size="3"> ProxyPassReverse /
</font><a moz-do-not-send="true"
href="http://127.0.0.1:8081/TEST/opencms/"><font size="3">http://127.0.0.1:8081/TEST/opencms/</font></a><font
size="3">
</font>
<br>
<font size="3"> </font>
<br>
<font size="3"></VirtualHost></font>
<br>
<br>
<font face="sans-serif" size="2"><IfModule mod_proxy_ajp.c></font>
<br>
<font face="sans-serif" size="2"> <Location "/opencms"></font>
<br>
<font face="sans-serif" size="2"> Allow from all</font>
<br>
<font face="sans-serif" size="2"> ProxyPass </font><a
moz-do-not-send="true" href="http://localhost:8080/opencms"><font
face="sans-serif" size="2">http://localhost:8080/opencms</font></a>
<br>
<font face="sans-serif" size="2"> </Location></font>
<br>
<font face="sans-serif" size="2"> <Location "/export"></font>
<br>
<font face="sans-serif" size="2"> Allow from all</font>
<br>
<font face="sans-serif" size="2"> ProxyPass </font><a
moz-do-not-send="true" href="http://localhost:8080/export"><font
face="sans-serif" size="2">http://localhost:8080/export</font></a>
<br>
<font face="sans-serif" size="2"> </Location></font>
<br>
<font face="sans-serif" size="2"> <Location "/resources"></font>
<br>
<font face="sans-serif" size="2"> Allow from all</font>
<br>
<font face="sans-serif" size="2"> ProxyPass </font><a
moz-do-not-send="true" href="http://localhost:8080/resources"><font
face="sans-serif" size="2">http://localhost:8080/resources</font></a>
<br>
<font face="sans-serif" size="2"> </Location></font>
<br>
<font face="sans-serif" size="2"> <Location "/update"></font>
<br>
<font face="sans-serif" size="2"> Allow from all</font>
<br>
<font face="sans-serif" size="2"> ProxyPass </font><a
moz-do-not-send="true" href="http://localhost:8080/resources"><font
face="sans-serif" size="2">http://localhost:8080/resources</font></a>
<br>
<font face="sans-serif" size="2"> </Location></font>
<br>
<br>
<font face="sans-serif" size="2"> <Location "/</font><font
size="3">TEST</font><font face="sans-serif" size="2">/opencms"></font>
<br>
<font face="sans-serif" size="2"> Allow from all</font>
<br>
<font face="sans-serif" size="2"> ProxyPass </font><a
moz-do-not-send="true" href="http://localhost:8081/"><font
face="sans-serif" size="2">http://localhost:8081/</font></a><font
size="3">TEST</font><font face="sans-serif" size="2">/opencms</font>
<br>
<font face="sans-serif" size="2"> </Location></font>
<br>
<font face="sans-serif" size="2"> <Location "/</font><font
size="3">TEST</font><font face="sans-serif" size="2">/export"></font>
<br>
<font face="sans-serif" size="2"> Allow from all</font>
<br>
<font face="sans-serif" size="2"> ProxyPass </font><a
moz-do-not-send="true" href="http://localhost:8081/"><font
face="sans-serif" size="2">http://localhost:8081/</font></a><font
size="3">TEST</font><font face="sans-serif" size="2">/export</font>
<br>
<font face="sans-serif" size="2"> </Location></font>
<br>
<font face="sans-serif" size="2"> <Location "/</font><font
size="3">TEST</font><font face="sans-serif" size="2">/resources"></font>
<br>
<font face="sans-serif" size="2"> Allow from all</font>
<br>
<font face="sans-serif" size="2"> ProxyPass </font><a
moz-do-not-send="true" href="http://localhost:8081/"><font
face="sans-serif" size="2">http://localhost:8081/</font></a><font
size="3">TEST</font><font face="sans-serif" size="2">/resources</font>
<br>
<font face="sans-serif" size="2"> </Location></font>
<br>
<font face="sans-serif" size="2"> <Location "/</font><font
size="3">TEST</font><font face="sans-serif" size="2">/update"></font>
<br>
<font face="sans-serif" size="2"> Allow from all</font>
<br>
<font face="sans-serif" size="2"> ProxyPass </font><a
moz-do-not-send="true" href="http://localhost:8081/"><font
face="sans-serif" size="2">http://localhost:8081/</font></a><font
size="3">TEST</font><font face="sans-serif" size="2">/resources</font>
<br>
<font face="sans-serif" size="2"> </Location></font>
<br>
<br>
<font face="sans-serif" size="2"></IfModule></font>
<br>
<br>
<font face="sans-serif" size="2">tomcat's server.xml</font>
<br>
<br>
<font face="sans-serif" size="2"><Connector port="8080"</font>
<br>
<font face="sans-serif" size="2">
maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"</font>
<br>
<font face="sans-serif" size="2">
enableLookups="false" redirectPort="8443"
acceptCount="100"</font>
<br>
<font face="sans-serif" size="2">
proxyName="testopencms.lan" proxyPort="80"</font>
<br>
<font face="sans-serif" size="2">
debug="0" connectionTimeout="20000"</font>
<br>
<font face="sans-serif" size="2">
disableUploadTimeout="true" emptySessionPath="true"/></font>
<br>
<font face="sans-serif" size="2"> <Connector port="8081"</font>
<br>
<font face="sans-serif" size="2">
maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"</font>
<br>
<font face="sans-serif" size="2">
enableLookups="false" redirectPort="8443"
acceptCount="100"</font>
<br>
<font face="sans-serif" size="2">
proxyName="test.testopencms.lan" proxyPort="80"</font>
<br>
<font face="sans-serif" size="2">
debug="0" connectionTimeout="20000"</font>
<br>
<font face="sans-serif" size="2">
disableUploadTimeout="true" emptySessionPath="true"/>
</font>
<br>
<font face="sans-serif" size="2"> </font>
<br>
<font face="sans-serif" size="2"> <!-- Define an AJP
1.3 Connector on port 8009 --></font>
<br>
<font face="sans-serif" size="2"> <Connector port="8009"
emptySessionPath="true" protocol="AJP/1.3" redirectPort="8443"
/></font>
<br>
<br>
<font face="sans-serif" size="2">Please friend help me in this
regard.</font>
<br>
<br>
<font face="sans-serif" size="2">Cheers</font>
<br>
<font face="sans-serif" size="2">Manoj</font>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
</div>
</body>
</html>