[opencms-dev] Configuring multiple sites in OpenCms 5.3.x

Alexander Kandzior alex at opencms.org
Tue Feb 3 17:02:02 CET 2004


> I cannot figure out how to create a new site .... Any hints?
> 
> Bye,
> Stephan


1) Configure your Tomcat to accept requests to http://localhost:8081 by
editing "server.xml"
2) Add a folder /sites/mysite/. Copy some stuff to it
3) Maybe set the "Title" property on the /sites/mysite folder so "Title=My
new site".
4) change opencms.properties like this
----------------
# The workplace site
site.workplace=http://localhost:8080

# List of configured site roots
# The format of the list entries is: (server url)|(vfs folder)
# e.g. http://localhost:8081|/sites/default/release/
site.root.list=\
	http://localhost:8080|/sites/default/,
	http://localhost:8081|/sites/mysite/


# The default site root
site.root.default=/sites/default/

# List of site folders. Resource links in/to these site folders will be
labeled
# with a special icon in the explorer view.
site.labeled.folders=
-------------------

Now you should see different sites when accessing through ports 8080 or
8081. 
Note that the workplace will be working only if it is accessed by the server
configured in "site.workplace". 


Best Regards,
Alex.

Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com




More information about the opencms-dev mailing list