<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;
color:navy;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi,</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Houi, you shall understand first what the
both opencms suffixes are in the path: the first opencms is the app context (/webapps/<b><span
style='font-weight:bold'>opencms</span></b>/), 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 </span></font><font size=2 color=navy face=Wingdings><span
style='font-size:10.0pt;font-family:Wingdings;color:navy'>J</span></font><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>):</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><sites><br>
<workplace-server><a
href="http://localhost:8080">http://localhost:8080</a></workplace-server><br>
<default-uri>/sites/tro/</default-uri>
<br>
<site server="<a
href="http://localhost:8080">http://localhost:8080</a>" uri="/sites/tro/"/><br>
</sites><br>
<br>
</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Keep in mind, that the site definition has nothing to do with the servlet
definition </span></font><font face=Wingdings><span style='font-family:Wingdings'>J</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>but why do you need such a path? </span></font><font face=Wingdings><span
style='font-family:Wingdings'>J</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Most of the guys on this list try to get rid of /opencms/opencms/, see:</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><a href="http://www.pomegranate.de:9000/cms/forum/viewthread?thread=93">http://www.pomegranate.de:9000/cms/forum/viewthread?thread=93</a></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>HTH,</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Kind Regards,</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Arash</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Mick Knutson<br>
<b><span style='font-weight:bold'>Sent:</span></b> Dienstag, 5. Dezember 2006
23:31<br>
<b><span style='font-weight:bold'>To:</span></b> The OpenCms mailing list<br>
<b><span style='font-weight:bold'>Subject:</span></b> [opencms-dev] site
question</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>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)<br>
<br>
I want to keep the existing documentation in my install for reference, then
create a frsh new site for my new site. <br>
But, I am unsure how to add the new site.<br>
<br>
<sites><br>
<workplace-server><a
href="http://localhost:8080">http://localhost:8080</a></workplace-server><br>
<default-uri>/sites/default/</default-uri> <br>
<site server="<a
href="http://localhost:8080">http://localhost:8080</a>"
uri="/sites/default/"/><br>
</sites><br>
<br>
This states that /sites/default/ shows up as <a
href="http://localhost:8080/opencms/opencms/index.jsp">http://localhost:8080/opencms/opencms/index.jsp</a>
which is quite confusing already.<br>
<br>
But what I want is to create a new site, like /sites/tro and have it be located
at <a href="http://localhost:8080/opencms/tro/index.jsp">http://localhost:8080/opencms/tro/index.jsp</a><br>
<br clear=all>
<br>
-- <br>
<br>
Thanks<br>
<br>
DJ MICK<br>
<a href="http://www.djmick.com">http://www.djmick.com</a><br>
<a href="http://www.myspace.com/mickknutson">http://www.myspace.com/mickknutson
</a></span></font></p>
</div>
</body>
</html>