Hi Alan,

I have several related sites running on a single server, using Windows
2003 Webserver Edition, IIS, and BD7.  The sites are almost finished
and before I really start debugging I wanted to migrate over to
OpenBD.

Basically, I need to deploy OpenBD so that I can run several distinct
sites on the same server. I want to keep BD Admin as a seperate
context. So I need to be able to run multiple contexts. That's all. I
had it working fine when I could define the context and it's virtual
hosts all in the same spot in Jetty.xml. I was just starting to get
back into actual coding when 1.1 was released, and while I'm sure the
direction it is taking is better in the long run, the way things were
moved around really confused me. I'm still not sure exactly how to get
multiple contexts defined and working.

What would save my day would be a how-to on how to define multiple
contexts within one instance of R2R.. the capability was there in 1.0.
I literally had what I wanted up and running in less than an hour.
1.1, a few days in and I still can't figure it out. I'm trying, but I
just don't know enough about the inner workings of jetty to do it.

For the WEB-INF folders, they are copied from openbd/WEB-INF to the
myapp/ folders as shown below. I haven't made any changes to any files
in those folders.

c:/jetty-openbd/webapps/openbd/WEB-INF
c:/jetty-openbd/webapps/myapp2/WEB-INF
c:/jetty-openbd/webapps/myapp3/WEB-INF

Default document (index.cfm) is hosted as

c:/jetty-openbd/webapps/openbd/index.cfm
c:/jetty-openbd/webapps/myapp2/index.cfm
c:/jetty-openbd/webapps/myapp3/index.cfm

For the context file, I simply copied openbd.xml and renamed them to
reflect the different contexts.

c:/jetty-openbd/contexts/openbd.xml
c:/jetty-openbd/contexts/myapp2.xml
c:/jetty-openbd/contexts/myapp3.xml

Then I opened up each new context file and edited as follows (using
myapp2 as an example):


---------------------------------------------------------------
<Configure class="org.mortbay.jetty.webapp.WebAppContext">

<Set name="contextPath">/</Set>
<Set name="war">
<SystemProperty name="jetty.home" default="."/>/webapps/myapp2
</Set>

<Set name="extractWAR">false</Set>
<Set name="copyWebDir">false</Set>
<Set name="defaultsDescriptor">
<SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml
</Set>

<!-- virtual hosts
<Set name="virtualHosts">
<Array type="String">
<Item>www.myapp2.com</Item>
<Item>myapp2.com</Item>
</Array>
</Set>
-->

<!-- disable cookies  -->
<Get name="sessionHandler">
<Get name="sessionManager">
<Set name="usingCookies" type="boolean">false</Set>
</Get>
</Get>


</Configure>

---------------------------------------------------

And that's as far as I got. Not quite sure where to go from here.

--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official site @ http://www.openbluedragon.org/

!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to