Hello,

I have spent time this afternoon trying to get virtual hosts working
with OpenBDJam,  the latest version installed on a fresh copy of
Ubuntu 10.10

I was able to find some wiki / blog articles that talked about how to
do it, but I didn't have any luck.

I was able to create another context file to get the new virtual host
to work, but then the default one did not work and I couldn't get to
the bd administrator

I also had to copy the WEB-INF folder into the virtual host to get the
CFML page to work.

If someone could give me brief  step 1, step 2, step 3 that would be
great.

I am not looking for a huge tutorial, just something to get me going.


Here is the dev_randy_cc.xml file I have in /opt/openbdjam/jetty/
contexts

<?xml version="1.0"  encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://
www.eclipse.org/jetty/configure.dtd">

<Configure class="org.eclipse.jetty.webapp.WebAppContext">

  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-->
  <!-- Required minimal context configuration : -->
  <!--  + contextPath  -->
  <!--  + war OR resourceBase -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-->
  <Set name="contextPath">/</Set>
  <Set name="war">/opt/openbdjam/webapp/dev_randy_cc/</Set>

  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!-- Optional context configuration  -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <Set name="extractWAR">false</Set>
  <Set name="copyWebDir">false</Set>
  <Set name="defaultsDescriptor">/opt/openbdjam/jetty/etc/
webdefault.xml</Set>


 <Set name="virtualHosts">
    <Array type="String">
      <Item>dev.randy.cc</Item>

      <Item>192.168.1.115</Item>
    </Array>
  </Set>


  <Get name="errorHandler">
    <Call name="addErrorPage">
      <Arg type="int">404</Arg>
      <Arg type="String">/error.cfm</Arg>
    </Call>
  </Get>

</Configure>

-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 official manual: http://www.openbluedragon.org/manual/
 Ready2Run CFML http://www.openbluedragon.org/openbdjam/

 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to