Thanks, Matt -- that's helpful. One follow-up question (and this is something I've wondered about vis- a-vis Adobe CF as well): what are the pros/cons of running multiple instances of openBD (or CF for that matter)? If this were a production environment and I had multiple virtual hosts, would I benefit from multiple instances in some way? Would having multiple instances increase the number of simultaneous requests the server is capable of executing?
Ok -- so that was three follow-up questions, but they're all part of one uber meta-question. Thanks, Dave On Aug 15, 1:00 pm, Matthew Woodward <[email protected]> wrote: > Dave Anderson wrote: > > I've got OpenBD up and running with Tomcat on my laptop, and am > > mystified about how to configure it the way I want it, so any help > > would be much appreciated. I'm accustomed to Adobe CF on Windows, so > > I feel like a stranger in a strange land. > > Welcome! We'll try to have you feeling less strange in no time. ;-) > > > There are two main questions I have: 1) how do I configure Tomcat (or > > OpenBD - or both) so that the openBD context is running at my local > > root (at localhost:8080/ rather than localhost:8080/openBD), > > Couple ways to accomplish this. > > First, if you don't care that you have a port in your URL, just delete > your ROOT context and deploy OpenBD as ROOT. That's the one context on > Tomcat you can have that won't have the context path (e.g. /openbd) in > the URL. > > Second, you can leave the context path intact (and remember you'll have > to have one for every instance of OpenBD other than the ROOT instance if > you go that route) and use Tomcat's virtual host configuration to set it > up the way you want. > > > and 2) if > > I wanted to set up multiple openBD 'sites' that respond to requests > > using different host headers (like site1.localhost:8080, etc.), how do > > I do that? > > Do you want to have separate instances of OpenBD for each application, > or use the same instance? If you want to use the same OpenBD instance > for everything, you can read this article on configuring things that way > on > Tomcat:http://wiki.openbluedragon.org/wiki/index.php/Single_Instance_Install > > Or you could grab the Jetty Ready2Run version of OpenBD since it's > already configured that way. > > > Note that I'm not using any server software other than > > Tomcat -- no Apache httpd or IIS in this config. > > And that's fine--Tomcat works fine on its own. You can even set it to > run on port 80 if you'd like. > > > It's not that I haven't done some searching, mind you. It's just that > > the materials I've found have been hard to follow, this environment > > being foreign to me. If you've got good noob resource links to share > > for this stuff, please do. > > Just to make sure there's no confusion, what you're really after is 100% > Tomcat configuration stuff. OpenBD is really just an app that runs on > Tomcat, so OpenBD doesn't come into play when you're talking about > context paths, virtual host configuration, etc. I always just like to > point that out so people understand where the line is drawn between > OpenBD and the servlet container (which in your case in Tomcat). > > So, to sum up: > 1. You can only have one ROOT webapp that would not have a context path > in the URL > > 2. You can set OpenBD up as a common class in Tomcat to have one > instance of OpenBD serve all your CFML files > > 3. You can use the Ready2Run version (which is based on Jetty) if you > just want something that works out of the box > > 4. For Tomcat configuration such as virtual hosts, etc. that information > would be in the Tomcat documentation, but if you have questions you can > post here and we'll try to help. > > Let me know if that doesn't address some of what you're asking and help > you get going. > > Matt > -- > Matthew Woodward > [email protected]http://www.mattwoodward.com/blog > > Please do not send me proprietary file formats such as Word, PowerPoint, > etc. as attachments.http://www.gnu.org/philosophy/no-word-attachments.html > > smime.p7s > 4KViewDownload --~--~---------~--~----~------------~-------~--~----~ 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 !! -~----------~----~----~----~------~----~------~--~---
