Hello Luciano
(Sorry if this arrives twice, was not clear if it was sent
the first time)
I am finding it difficult to configure virtual sites.
I thought that I pretty well understood the notions
of relative path, absolute path, context name, servlet name,
and aliasing, etc., but am having problems.
My sites are a little different from usual in that we do
not put the site at "webapps/ROOT" (i.e., at
http://www.domainname.com)
but instead, like meshcms, we place a war file at
"webapps/contextname.war" (i.e., at
http://www.domainname.com/contextname).
What I would like to do is configure (or emplace?) the meshcms
page tree so that it appears to be inside our web app tree, but
without the necessity of the "meshcms" component appearing
on urls. (OK, of course, for content editing).
An example:
Suppose the web app with context is:
http://www.photosmash.net/getimg
and a typical servlet page would be:
http://www.photosmash.net/getimg/SelectPubImgSet
or the page at:
http://www.photosmash.net/getimg/FSBlog3Display?username=mccann/
Then, I would like the meshcms content directory inside the meshcms tree
(say, "someMeshcmsSite") to be aliased to
http://www.photosmash.net/getimg/someMeshcmsSite
Is it possible to configure things so they work like this ?
I will also note that it is possible to set up a context.xml,
so that a directory external to the webapps tree can be aliased:
For example, if getimg#images.xml is:
<Context docBase="/usr/local/images"
crossContext="true"
allowLinking="true">
</Context>
then, a request to:
http://www.photosmash.net/getimg/images/photo1/img_3_4_5.jpg
will find the image at:
/usr/local/images/photo1/img_3_4_5.jpg
Thus, I was hoping I could alias something like geting#someMeshcmsSite.xml
to be
<Context docBase="/usr/local/tomcat60/webapps/meshcms/someMeshcmsSite"
....
</Context>
which would cause a request such as
http://www.photosmash.net/getimg/someMeshcmsSite/index.html
to refer to the welcome page at
/usr/local/tomcat60/webapps/meshcms/someMeshcmsSite.
This doesn't, however, seem to work for referring to content that
resides inside the webapps tree, but only if the content is outside the
webapps tree.
So, my goal, in short, is to alias the meshcms content dir but make
it appear to be entirely a tree contained in my getimg context.
Is it possible to do this ?
Is there more info or examples of aliasing besides the
page at samples/virtualsites ?
Thanks for considering this (somewhat wordy) question.
Maurice Yarrow