Just wanted to close this out for anyone searching in the future.
I believe I have found the correct configuration for my <Host>. I am
still testing, but initial tests are positive.
Changing:
<Host name="www.domain1.com" appBase="/path/to/domain1.com">
<Alias>domain1.com</Alias>
<Context path="" docBase="/path/to/domain1.com/"
useHttpOnly="true" allowLinking="true" />
</Host>
To:
<Host name="www.domain1.com" appBase="/path/to/domain1.com"
deployOnStartup="true" autoDeploy="false" deployIgnore=".*">
<Alias>domain1.com</Alias>
<Context path="" docBase="/path/to/domain1.com/"
useHttpOnly="true" allowLinking="true" />
</Host>
I'm not sure that I need to have the "deployOnStartup" as docs seem to
indicate
that defaults to true. I set the autoDeploy to false because each
host/domain directory
only has one application (ROOT) and we will never be dropping in a war file
for tomcat to deploy
within that host. I set the deployIgnore to base wildcard so that when the
application
does deploy on startup (base root app) - it will skip the subfolders and we
no longer have
the "INFO: Deploying web application directory /path/to/domain1.com/images"
in the logs.
Again, initial tests are showing CFM pages being processed (we even keep
modules and
components in subfolders - which are no longer being "deployed") accurately.
Hope this helps someone in the future.
Thanks for the initial tips on where to look for this resolution Matthew!
Thanks,
Alan Cole
(PGP Key ID: 0x82D8E0C7)
On Tuesday, October 2, 2012 9:33:33 AM UTC-4, [email protected] wrote:
>
> Matthew,
>
> I used the Vivotech installer. The only thing that was amiss during instal
> is
> that mod_cfml did not install correctly. That last piece of the installer
> I've never
> been able to get to install (on any of my development machines or
> production
> machines) - this isn't that big of a deal for me, as I have no problem
> editing
> the server.xml file when we launch a new site/app.
>
> Would that have something to do with this? Perhaps some piece got installed
> but the complete package did not and that piece is causing this?
>
> Also - did a test, and adding a "WEB-INF" directory did Not change the
> start
> up behavior.
>
> I will look up declaring the DocBase as a relative path to the AppBase and
> let you know if that changes the behavior.
>
> Thank you for that suggestion.
>
> Thanks,
> Alan Cole
> (PGP Key ID: 0x82D8E0C7)
>
>
>
> Begin forwarded message:
>
> *From: *Matthew Woodward <[email protected]>
>
> *Subject: *Re: [OpenBD] server restart time
>
> *Date: *October 2, 2012 9:23:51 AM EDT
>
> *To: *[email protected]
>
> *Reply-To: *[email protected]
>
>
> On Tue, Oct 2, 2012 at 6:12 AM, Alan Cole <[email protected]> wrote:
>
>> <Host name="www.domain1.com" appBase="/path/to/domain1.com">
>> <Alias>domain1.com</Alias>
>> <Context path="" docBase="/path/to/domain1.com/"
>> useHttpOnly="true" allowLinking="true" />
>> </Host>
>>
>> <Host name="www.domain2.com" appBase="/path/to/domain2.com">
>> <Alias>domain2.com</Alias>
>> <Context path="" docBase="/path/to/domain2.com/"
>> useHttpOnly="true" allowLinking="true" />
>> </Host>
>>
>
> Given that example what I suggested isn't the problem. I just know that if
> you have overlapping appBases you'll see the behavior you're describing. If
> in your work directory you see a directory created in each application for
> every other application that's what's going on, but from your example above
> it doesn't look like you have overlapping appBases.
>
> You might try declaring your docBase as relative to your appBase to see if
> that changes the behavior, but this may not be the issue. It just sounded
> like it from your original description.
>
>
>> Also, just thought of something - again, not used to a java server here,
>> I don't have any
>> app/domain directories that contain a "WEB_INF" folder ... do you think
>> that would cause
>> this behavior?
>>
>>
> Completely depends on how you have things configured. Sorry if I missed
> this but if you're using the Viviotech installer then not having a WEB-INF
> directory in every application isn't an issue since OpenBD is configured in
> a common class setup by the installer, but if you've done some other type
> of setup yourself and don't have WEB-INF directories then something strange
> is definitely going on.
>
> --
> 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
>
> --
> online documentation: http://openbd.org/manual/
> http://groups.google.com/group/openbd?hl=en
>
>
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en