[opencms-dev] Multiples sites without apache front end

Graeme Kidd coolkidd3 at hotmail.com
Wed Jan 13 21:33:56 CET 2010


Hi,

I am wanting to set up two sites in OpenCMS and I am aware of the following
documentaiton:
http://opencms-wiki.org/MultiSite_configuration_instructions_%28apache_mod_j
k%29
http://opencms-wiki.org/MultiSite_configuration_instructions

My setup is currently Tomcat 6 without an Apache front end, which means I am
having trouble with the above documentation.

This how I have configured my setup so far:

opencms-syste.xml
<sites>
  <workplace-server>http://localhost:8080</workplace-server>
  <default-uri>/sites/default/</default-uri>
  <site server="http://localhost:8080" uri="/sites/default/"/>
  <site server="site2.com" uri="/sites/site2/"/>
</sites>

server.xml
<Connector port="8080" maxHttpHeaderSize="8192"
          maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
          enableLookups="false" redirectPort="8443" acceptCount="100"
          connectionTimeout="20000" disableUploadTimeout="true" />

       
<Connector port="8081" maxHttpHeaderSize="8192"
          maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
          enableLookups="false" redirectPort="8443" acceptCount="100"   
          proxyName="site2.com" proxyPort="80"
          connectionTimeout="20000" disableUploadTimeout="true" />

Hosts file
127.0.0.1       site2.com

Goin to "http://site2.com/opencms" results in a Browser "404" (not OpenCMS
404) but going to "http://site2.com:8081/opencms" results in the loading of
the default site ("/sites/default/").

Does anyone know what I am doing wrong and if its possible to set up
multiple site without using APache?

Thanks




More information about the opencms-dev mailing list