Why are directories created

I have lucee 4.5.1 and tomcat7 setup on a windows server 2008r2.

I have a wildcard DNS pointing to the server so any subdomain will forward
to main site. for example bob.mydomain.com will forward to
mydomain.com via the wildcard DNS entry.

My question is when I go to the site in this example dave.mydomain.com or
steve.mydomain.com tomcat takes about 10 seconds to load the page
and it also creates a folder in
c:\lucess\tomcat\conf\catalina\dave.mydomain.com that has root.xml

Why does it need to create these directories? And why does it take so long
to load pages for the first time?

I contacted Apache Tomcat mailing list and they indicated:

“Those are good questions but ones you need to ask the coldfusion folks
as Tomcat won’t do this by default (or even with config).”

-Dave

we need more details about your setup.

are you fronting Tomcat with IIS? if so, are you using the BonCode
connector (default)? if not, what does the Host element of that site
looks like in c:\lucess\tomcat\conf\server.xml?

Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/On 5/20/2015 11:45 AM, Dave Hare wrote:

I have lucee 4.5.1 and tomcat7 setup on a windows server 2008r2.

I have a wildcard DNS pointing to the server so any subdomain will
forward to main site. for example bob.mydomain.com will forward to
mydomain.com via the wildcard DNS entry.

My question is when I go to the site in this example dave.mydomain.com
or steve.mydomain.com tomcat takes about 10 seconds to load the page
and it also creates a folder in
c:\lucess\tomcat\conf\catalina\dave.mydomain.com that has root.xml

Why does it need to create these directories? And why does it take so
long to load pages for the first time?

I contacted Apache Tomcat mailing list and they indicated:

“Those are good questions but ones you need to ask the coldfusion folks
as Tomcat won’t do this by default (or even with config).”

-Dave

You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+unsubscribe@googlegroups.com
mailto:lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com
mailto:lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/4df209d7-1270-4ca0-a011-df7f80558707%40googlegroups.com
https://groups.google.com/d/msgid/lucee/4df209d7-1270-4ca0-a011-df7f80558707%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

Dave, we improved the speed of this process following Paul’s instructions
here: https://groups.google.com/forum/#!topic/lucee/V0pgjqOXvlM

Chris, I haven’t been able to find instructions on how to disable the
mod_cfml valve… how do we configure a so all requests go to the
one context?

Simon

it sounds like you’ve setup lucee using the installer, which uses mod_cfml
/ boncode (http://www.modcfml.org/) connector to configure tomcat’s hosts
on the fly.
Tomcat creates those files for each host container, so thats expected. As
to why it takes 10 seconds, this should only happen on the first request to
a virtual host after a tomcat restart.

mod_cfml is being actively developed, and there is a new version on the way
which improves context creation times, for support please see the mod_cfml
group https://groups.google.com/forum/#!forum/mod_cfml

If this server doesn’t require multiple virtual domains with a separate
lucee context for each you should disable the mod_cfml valve in
tomcat/conf/server.xml (its in the localhost Host) and manually setup your
so all requests go to the same context.

I haven’t been able to find instructions on how to disable the mod_cfml
valve… how do we configure a so all requests go to the one
context?

In $TOMCAT_HOME/ocnf/server.xml you should find a single element
that looks something like this



edit that to something like this



where the requested domain does not match another element the
request will go to the default host, which is by default “localhost”, but
this can be changed on the element. So if your server.xml
contains only a single localhost all requests will be sent to that
context

HTHOn 26 May 2015 at 13:42, Simon Goldschmidt <@Simon_Goldschmidt> wrote:

Thanks for the clarification Chris.

We changed the Engine’s defaulthost from “127.0.0.1”, which we use only for
server administration, to “localhost”. The Host record for “localhost” is
configured with a Context with a docBase in a separate directory and now
traffic for each of our domains is directed to our one webapp without use
of the valve.

Simon