On Mon, Nov 14, 2011 at 10:48 AM, Matt C <[email protected]> wrote:

> With that config, I CAN in fact navigate to
> http://openbd1.local:8888/openbd2/
> to get to openbd2's site.


Well, this is kind of what I was saying in an earlier email. I still think
this is expected behavior now that I've set this up locally and played with
it a bit, which is what I was getting at previously.

Short answer is because you're sharing the appBase between these apps,
you'll be able to do this. If you don't want this to be possible, just put
your apps in different appBases, e.g. move openbd1 and openbd2 into nested
directories under webapps (or again, wherever), so you wind up with
something like:
webapps/openbd1/openbd1/... WEB-INF etc in here ...
webapps/openbd2/openbd2/... WEB-INF etc in here ...

Then update your config:
<Host name="openbd1.local" appBase="webapps/openbd1">
  <Context path="" docBase="openbd1" />
</Host>
<Host name="openbd2.local" appBase="webapps/openbd2">
  <Context path="" docBase="openbd2" />
</Host>

I put my stuff elsewhere to test so you might need to experiment a bit,
e.g. appBase might need to be full path, but that's the gist of it.

Bottom line is with apps sharing the appBase, the only thing docBase and a
blank context path get you is that by default it'll hit the app you define
that way. Doesn't stop you from hitting other stuff under the same appBase
though.

Note on Tomcat as a rule you should have separate app bases anyway, not
only because the Tomcat docs recommend this, but also because you'll get
multiple runs of your scheduled tasks if you start sharing the appBase.
-- 
Matthew Woodward
[email protected]
http://blog.mattwoodward.com
identi.ca / Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint,
etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html

-- 
official tag/function reference: http://openbd.org/manual/
 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to