[opencms-dev] site question

Arash Kaffamanesh arash.kaffamanesh at pomegranate.de
Fri Dec 8 14:21:25 CET 2006


Hi,

 

Houi, you shall understand first what the both opencms suffixes are in the
path: the first opencms is the app context (/webapps/opencms/), the second
one is the servlet (OpenCmsServlet), which is defined in web.xml, so if you
want to have a site tro and a path /opencms/tro, you should rename the
opencms servlet definition in web.xml (see the section Changing the servlet
name from "opencms" to something else in web.xml) and create the folder tro
under sites in vfs and adjust the sites node in opencms-system.xml (that's
optional, you can let the default site as is, but if you feel better, then
do it :-)):

 

<sites>
      <workplace-server>http://localhost:8080</workplace-server>
      <default-uri>/sites/tro/</default-uri> 
      <site server="http://localhost:8080" uri="/sites/tro/"/>
</sites>



Keep in mind, that the site definition has nothing to do with the servlet
definition :-)

 

but why do you need such a path? :-)

 

Most of the guys on this list try to get rid of /opencms/opencms/, see:

 

http://www.pomegranate.de:9000/cms/forum/viewthread?thread=93

 

HTH,

 

Kind Regards,

Arash

 

 

 

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Mick Knutson
Sent: Dienstag, 5. Dezember 2006 23:31
To: The OpenCms mailing list
Subject: [opencms-dev] site question

 

I am trying to get my head around opencms and think the starting point is to
create a new site. (tell me if I am wrong)

I want to keep the existing documentation in my install for reference, then
create a frsh new site for my new site. 
But, I am unsure how to add the new site.

    <sites>
      <workplace-server>http://localhost:8080</workplace-server>
      <default-uri>/sites/default/</default-uri> 
      <site server="http://localhost:8080" uri="/sites/default/"/>
    </sites>

This states that /sites/default/ shows up as
http://localhost:8080/opencms/opencms/index.jsp which is quite confusing
already.

But what I want is to create a new site, like /sites/tro and have it be
located at http://localhost:8080/opencms/tro/index.jsp


-- 

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20061208/5e6ee39e/attachment.htm>


More information about the opencms-dev mailing list