Jordan,

I removed the installation that wasn't working... Then did a re-install. The 
only
thing I did differently with the installer was not change the "tomcat port". 
Previously
I changed it from "8888" to "8080". This time I left it as "8888".

I then edited the server.xml file like you mentioned and placed a host entry as 
follows:

<Host name="[IP-ADDR]" appBase="/working/sites">
                <Context path="" docBase="/working/sites/" useHttpOnly="true" />
</Host>

Now my main site folders are working as expected.

The biggest issue is that I now cannot seem to find/get to the OpenBD or Tomcat 
(if there
should be one in this type of instal) administrator page.

I went back to the server.xml file and change the host entry that read 
"name='localhost'"
to read "name='[IP-ADDR]:8888'" and restarted openBD ... tried pointing a 
browser
at that and it came back as could not connect to server. When I just put the 
path to
the openBD admin into the browser at the IP address (no port) ... it connects 
to the server but
it responds with page not found. Should I MOVE the file that are located within 
/openbd/tomcat/webapps/ROOT/ to my folder/path as indicated in the above host
block or something else?

My understanding (limited as it is) is that the tomcat server should be serving 
the
admin stuff on port 8888 ... and my apache is serving the rest using mod_jk to 
have
the openBD/tomcat process those. With that logic I shouldn't have to modify the 
apache
config (as far as it listening on port 8888).

Thanks again!
Alan Cole
(PGP Key ID: 0x82D8E0C7)

Begin forwarded message:

> From: Jordan Michaels <[email protected]>
> Subject: Re: [OpenBD] Migrating from CF to OpenBD and would like to keep 
> Apache virtual hosts
> Date: February 10, 2012 4:32:05 PM EST
> To: Alan Cole <[email protected]>
> 
> What you're attempting to do is very doable (and should be very easy).
> 
> What version of the OpenBD installer did you use?
> 
> If you used one of older installers (pre 2.0) then you will need to go to the 
> Tomcat server.xml file and add your sites to Tomcat so Tomcat knows where to 
> look for them.
> 
> The reason you're getting the document from ROOT is because Tomcat doesn't 
> know where to find your sites. You tell it by adding your sites to the 
> server.xml file.
> 
> The 2.0 BETA installers come with mod_cfml (modcfml.org), which is a project 
> designed to automate the configuration of the hosts within Tomcat so that 
> they automatically match what's in Apache.
> 
> Bottom line: configure your sites in the Tomcat server.xml file 
> (/opt/openbd/tomcat/conf/server.xml - look at the comments close to the 
> bottom) and you should be all set.
> 
> I don't mind you emailing me directly for personal or content-sensitive 
> reasons, but in general I prefer communication to remain on the mailing list 
> so that it's findable by google and folks who may have the same questions as 
> you are asking. It saves me having to answer it twice. ;)
> 
> Hope this helps!
> 
> Warm Regards,
> Jordan Michaels
> 
> On 02/10/2012 01:13 PM, Alan Cole wrote:
>> Jordan,
>> 
>> I figured I would email you directly - I hope that is ok.
>> 
>> The installer you pointed me to has gotten me much farther along
>> than I had gone previously. But I'm not seeing the behavior I was
>> expecting.
>> 
>> It occurred to me that I may not be explaining what I am attempting
>> to accomplish correctly. Thus I honestly am not sure if what I am trying
>> to do is even possible.
>> 
>> I have attached a crude diagram of the way we have standardized our
>> server set ups. I would like to outline the basics of what how we
>> currently set them up and then with your understanding and expertise
>> you may be able to let me know if what I'm trying to do is even possible
>> and perhaps point me in the correct direction.
>> 
>> So from the diagram, the servers have two physical hard disks. The OS
>> partitions them with the main disk where the operating system resides
>> and the second disk where the website folders (one per domain hosted)
>> and subsequently within those the html/cfm/jpg/css/ etc files pertaining
>> to each site.
>> 
>> We do this because we have custom back up systems for the site
>> disk and if we have a hardware failure it is relatively simple to replace
>> that disk and viola sites are back in production.
>> 
>> As to ColdFusion - we currently install that into the /opt directory
>> that is on the system (first) disk. That disk gets backed up much less
>> frequently as changes don't occur very often.
>> 
>> So we have apache, ColdFusion on the system disk and the sites
>> set up on the second disk. All the files (including the CFM files) that
>> a site requires are stored/located on the second disk. Apache is set
>> up with document roots for each virtual host (site) pointing to the
>> corresponding directory on the second disk and hands off processing
>> of any cfm/cfc/etc files located there to the coldfusion engine.
>> 
>> I hope at this point you can get a better idea of what I'm attempting to
>> set up. I had the impression this is possible and that we could set up
>> OpenBD to run as common classes within tomcat and use mod_jk to
>> have apache hand off processing of certain files to the tomcat/openBd.
>> 
>> After running the installer what I got was somewhat different. I had an
>> html page in the second disk/site folder that was served as expected from
>> apache. I added a cfm file to the site directory and when I hit it with a
>> browser I got the cfm file located in /openbd/tomcat/webapps/ROOT/index.cfm
>> (I think - going by memory on exact path). The point is that I could not
>> access any cfm files located within the site directory ... the system was
>> serving cfm files within the /opt/openbd install directory.
>> 
>> This setup would dictate that I separate the "application" (i.e.
>> cfm,cfc, etc)
>> files from the static resources (graphics, css, js, etc) files. In other
>> words,
>> have my site project split into separate locations on the server. Very
>> confusing
>> and not conductive to reliable, easy backups.
>> 
>> Is this normal? Can what I am attempting (replicate the behavior of a
>> CF install) even be accomplished? Did I screw something up in the instal?
>> is there some configurations step I missed after instal?
>> 
>> I have no problem with manually configuring systems, but the java
>> server doesn't seem to behave in a logical manner to me.
>> 
>> Thank you again for all the help you have given me thus far. I really
>> do appreciate all of it. If there is anything you can do to point me in
>> the right direction (even confirming that what I am attempting to do is
>> even possible) that would be great!
>> 
>> Thanks again,
>> Alan Cole
>> (PGP Key ID: 0x82D8E0C7)
>> 

-- 
online documentation: http://openbd.org/manual/
   google+ hints/tips: https://plus.google.com/115990347459711259462
     http://groups.google.com/group/openbd?hl=en

     Join us @ http://www.OpenCFsummit.org/ Dallas, Feb 2012

Reply via email to