[opencms-dev] Multiples sites without apache front end

Graeme Kidd coolkidd3 at hotmail.com
Thu Jan 14 00:57:14 CET 2010


It turns out I was just complicating things, in the end I just needed to
add:
<Alias>site2.com</Alias>

To the localhost <HOST> element and remove the 8081 connector.

Thanks anyway

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Graeme Kidd
Sent: 13 January 2010 20:34
To: opencms-dev at opencms.org
Subject: [opencms-dev] Multiples sites without apache front end

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


_______________________________________________
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
http://lists.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list