[opencms-dev] Am I on the right track?

Christian Steinert christian_steinert at web.de
Tue Sep 12 22:05:07 CEST 2006


> I am trying to learn how to use OpenCms by building a little test site. Am I 
> building the site correctly? By correctly, I mean is this the way to build a 
> new site using OpenCms?
> 
> 1. Create a folder /sites/test in the OpenCms worpkplace
> 2. Edit TOMCAT_HOME/conf/server.conf to add a new connector on port 8081
> 3. Edit opencms-system-xml to add a new site:
> 	<site server="http://localhost:8081" uri="sites/test" />
> 
> I created an index.html in the /sites/test folder and I can access it from 
> localhost:8081/opencms/opencms so this works. Just not sure if this is the 
> way to proceed.
> 
> Now, if I want to change the head image for this test site, do I create an 
> Image Gallery under /sites/test, upload the image


Until here, everything you do is perfectly fine. 

If you use apache in front of tomcat, then you would have to add some mod_rewrite and some java connector stuff there, so that www.testsite.com will actually be forwarded to www.testsite.com:8081/opencms/opencms. 

OR, you could live without Mod_reqwrite, configure your java connector, make your opencms webapplication into the ROOT application and edit the web.xml of opencms to change the servlet mapping. This is how I have done it.

OR, if you can live with /opencms/opencms/ <nd want to use apache in front then you can use only plain java connector, without caring about the URL Prefixes.
___

The other questions I can't answer, because I have never worked with templateOne

hth
christian
_______________________________________________________________________
Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und kostenlos.
Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=022222




More information about the opencms-dev mailing list