[opencms-dev] Two OpenCMS Installation on same tomcat
Manoj.Sharma at nevagroup.com
Manoj.Sharma at nevagroup.com
Tue Apr 21 13:19:06 CEST 2015
Hi All,
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 "Your session has expired. Please log in again.
" 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.
httpd.conf
<VirtualHost *:80>
<Directory "C:/Tomcat 8.0/webapps/ROOT/">
Order allow,deny
Allow from all
</Directory>
ProxyPreserveHost On
ServerName testopencms.lan
ServerAdmin webmaster at alkacon.com
DocumentRoot "C:/Tomcat 8.0/webapps/ROOT/"
ErrorLog logs/error.log
# Log only non-redirect requests in "normal" log file
SetEnvIf Request_URI "\/opencms\/*" redirect
CustomLog logs/localhost-access.log common env=!redirect
ProxyPass /opencms/ !
RedirectPermanent /opencms/ http://testopencms.lan/
RewriteRule .* http://127.0.0.1:8080/opencms/handle404?exporturi=%
{REQUEST_URI}&%{QUERY_STRING} [P]
ProxyPass /resources/ !
ProxyPass /export/ !
ProxyPass /
http://127.0.0.1:8080/opencms/
ProxyPassReverse /
http://127.0.0.1:8080/opencms/
</VirtualHost>
<VirtualHost *:80>
<Directory "C:/Tomcat 8.0/webapps/TEST/">
Order allow,deny
Allow from all
</Directory>
ProxyPreserveHost On
ServerName test.testopencms.lan
ServerAdmin webmaster at alkacon.com
DocumentRoot "C:/Tomcat 8.0/webapps/TEST/"
ErrorLog logs/error.log
# Log only non-redirect requests in "normal" log file
SetEnvIf Request_URI "\/TEST\/*" redirect
CustomLog logs/localhost-access.log common env=!redirect
ProxyPass /TEST/opencms/ !
RedirectPermanent /TEST/opencms/ http://
test.testopencms.lan/TEST/opencms/
ProxyPass /TEST/opencms/resources/ !
ProxyPass /TEST/opencms/export/ !
ProxyPass /
http://127.0.0.1:8081/TEST/opencms/
ProxyPassReverse /
http://127.0.0.1:8081/TEST/opencms/
</VirtualHost>
<IfModule mod_proxy_ajp.c>
<Location "/opencms">
Allow from all
ProxyPass http://localhost:8080/opencms
</Location>
<Location "/export">
Allow from all
ProxyPass http://localhost:8080/export
</Location>
<Location "/resources">
Allow from all
ProxyPass http://localhost:8080/resources
</Location>
<Location "/update">
Allow from all
ProxyPass http://localhost:8080/resources
</Location>
<Location "/TEST/opencms">
Allow from all
ProxyPass http://localhost:8081/TEST/opencms
</Location>
<Location "/TEST/export">
Allow from all
ProxyPass http://localhost:8081/TEST/export
</Location>
<Location "/TEST/resources">
Allow from all
ProxyPass http://localhost:8081/TEST/resources
</Location>
<Location "/TEST/update">
Allow from all
ProxyPass http://localhost:8081/TEST/resources
</Location>
</IfModule>
tomcat's server.xml
<Connector port="8080"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
proxyName="testopencms.lan" proxyPort="80"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" emptySessionPath="true"/>
<Connector port="8081"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
proxyName="test.testopencms.lan" proxyPort="80"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" emptySessionPath="true"/>
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" emptySessionPath="true" protocol="AJP/1.3"
redirectPort="8443" />
Please friend help me in this regard.
Cheers
Manoj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20150421/2cd0fd52/attachment.htm>
More information about the opencms-dev
mailing list