<html>
<body>
Hy Miroslav,<br><br>
make attention: if you want only connect Apache and Tomcat please refer
to module 'Alkacon OpenCms 5.0.x Howto: Setting up httpd, Tomcat and
mod_proxy'.<br><br>
In the other side if you want connect Apache and Tomcat under Webcp you
have to open the
<yourwebcpdirectory>/httpd/include/<numberofsite>.httpd and
add the following:<br>
----------------------------------------------------------------------<br>
RewriteEngine On<br>
RewriteRule ^/opencms/((.*)\.(html|htm|jsp|jhtml|gif|jpg))$
<a href="http:///" eudora="autourl">http://</a><yourdomain>:8087/opencms/opencms/$1<br>
RewriteCond
%{HTTP_HOST}<x-tab> </x-tab><x-tab> </x-tab>!^212.25.180.216(:80)?$<br>
RewriteCond
%{HTTP_HOST}<x-tab> </x-tab><x-tab> </x-tab>!^<yourdomain>(:80)?$<x-tab> </x-tab><br>
RewriteRule
^/(.*)<x-tab> </x-tab><x-tab> </x-tab><a href="http:///" eudora="autourl">http://</a><yourdomain>/$1
[L,R]<br>
-------------------------------------------------------------------------------------------------------<br>
<br>
then create a tomcat connector on :8087 in server.xml l(in exmple see
below).<br><br>
In this way webcp pass to tomcat the execution of both dynamic and static
resources.<br><br>
I hope this can help you...<br><br>
bye, Maurizio Betti<br><br>
<br>
------------------------------------------ server.xml
-------------------------------------------------------------<br>
<?xml version="1.0" encoding="utf-8"?><br>
<Server className="org.apache.catalina.core.StandardServer"
debug="0" port="8005"
shutdown="SHUTDOWN"><br>
<x-tab> </x-tab><Listener
className="org.apache.catalina.mbeans.ServerLifecycleListener"
debug="0"/><br>
<x-tab> </x-tab><Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
debug="0"/><br>
<x-tab> </x-tab><GlobalNamingResources><br>
<x-tab> </x-tab><x-tab> </x-tab><Environment
name="simpleValue" override="true"
type="java.lang.Integer" value="30"/><br>
<x-tab> </x-tab><x-tab> </x-tab><Resource
auth="Container" description="User database that can be
updated and saved" name="UserDatabase"
scope="Shareable"
type="org.apache.catalina.UserDatabase"/><br>
<x-tab> </x-tab><x-tab> </x-tab><ResourceParams
name="UserDatabase"><br>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><parameter><br>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><name>factory</name><br>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><value>org.apache.catalina.users.MemoryUserDatabaseFactory</value><br>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab></parameter><br>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><parameter><br>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><name>pathname</name><br>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><value>conf/tomcat-users.xml</value><br>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab></parameter><br>
<x-tab> </x-tab><x-tab> </x-tab></ResourceParams><br>
<x-tab> </x-tab></GlobalNamingResources><br>
<x-tab> </x-tab><Service
className="org.apache.catalina.core.StandardService"
debug="0" name="Tomcat-Standalone"><br>
<b><x-tab> </x-tab><x-tab> </x-tab><Connector
className="org.apache.coyote.tomcat4.CoyoteConnector"
acceptCount="10" bufferSize="2048"
connectionTimeout="20000" debug="0"
enableLookups="true" maxProcessors="75"
minProcessors="5" port="8087"
protocolHandlerClassName="org.apache.coyote.http11.Http11Protocol"
proxyPort="0" redirectPort="8443"
scheme="http" secure="false"
tcpNoDelay="true"
useURIValidationHack="false"><br>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><Factory
className="org.apache.catalina.net.DefaultServerSocketFactory"/><br>
<x-tab> </x-tab><x-tab> </x-tab></Connector><br><br>
</b><x-tab> </x-tab><x-tab> </x-tab><Connector
className="org.apache.coyote.tomcat4.CoyoteConnector"
acceptCount="10" bufferSize="2048"
connectionTimeout="20000" debug="0"
enableLookups="true" maxProcessors="75"
minProcessors="5" port="8009"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
proxyPort="0" redirectPort="8443"
scheme="http" secure="false"
tcpNoDelay="true"
useURIValidationHack="false"><br>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><Factory
className="org.apache.catalina.net.DefaultServerSocketFactory"/><br>
<x-tab> </x-tab><x-tab> </x-tab></Connector><br><br>
<br>
<x-tab> </x-tab><x-tab> </x-tab><Engine
className="org.apache.catalina.core.StandardEngine"
debug="0" defaultHost="localhost"
mapperClass="org.apache.catalina.core.StandardEngineMapper"
name="Standalone"><br>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><Host
className="org.apache.catalina.core.StandardHost"
appBase="webapps" autoDeploy="true"
configClass="org.apache.catalina.startup.ContextConfig"
contextClass="org.apache.catalina.core.StandardContext"
debug="0" deployXML="true"
errorReportValveClass="org.apache.catalina.valves.ErrorReportValve"
liveDeploy="true"
mapperClass="org.apache.catalina.core.StandardHostMapper"
name="<b><yourdomain></b>"
unpackWARs="true"><br>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><Alias><b><yourdomain></b></Alias><x-tab> </x-tab><br>
<b><x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><Context
className="org.apache.catalina.core.StandardContext"
cachingAllowed="true"
charsetMapperClass="org.apache.catalina.util.CharsetMapper"
cookies="true" crossContext="true"
debug="0"
docBase="/usr/local/web/tomcat/webapps/opencms/"
mapperClass="org.apache.catalina.core.StandardContextMapper"
path="" privileged="false"
reloadable="true" swallowOutput="false"
useNaming="true"
wrapperClass="org.apache.catalina.core.StandardWrapper"><br>
</Context><br>
</b><x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab></Host><br>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><Logger
className="org.apache.catalina.logger.FileLogger"
debug="0" directory="logs"
prefix="catalina_log." suffix=".txt"
timestamp="true" verbosity="1"/><br>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><Realm
className="org.apache.catalina.realm.UserDatabaseRealm"
debug="0" resourceName="UserDatabase"
validate="true"/><br>
<x-tab> </x-tab><x-tab> </x-tab></Engine><br>
<x-tab> </x-tab></Service><br>
</Server><br>
-------------------------------------------------------------------------------------------------------<br><br>
<br><br>
<br><br>
<br><br>
<br><br>
<br><br>
<br><br>
<br><br>
<br><br>
<br>
At 19.27 05/06/2004 -0400, you wrote:<br>
<blockquote type=cite class=cite cite>Hi Maurizio,<br><br>
I'd be interested in the steps involved in hooking up Apache and
Tomcat.<br><br>
Miroslav<br><br>
----- Original Message ----- <br>
From: "Maurizio Betti" <m.betti@arsweb.it><br>
To: <opencms-dev@opencms.org><br>
Sent: Saturday, June 05, 2004 3:20 AM<br>
Subject: [opencms-dev] SOLVED: install opencms under Apache, Tomcat,
Webcp<br>
configuration<br><br>
<br>
> Hy all,<br>
><br>
> I found the solution to install tomcat under Apache, Tomcat and
webcp<br>
> config! If anybody has the same problem write to me.<br>
> Many thanks to Stefan Meier for the help.<br>
><br>
> Maurizio Betti<br>
><br>
> _______________________________________________<br>
> This mail is send to you from the opencms-dev mailing list<br>
> To change your list options, or to unsubscribe from the list, please
visit<br>
>
<a href="http://mail.opencms.org/mailman/listinfo/opencms-dev" eudora="autourl">http://mail.opencms.org/mailman/listinfo/opencms-dev</a><br>
><br>
><br>
> </blockquote></body>
</html>