Do I have this right?

I just set up a virtual server with the following parameters in the Basic
tab:

Document Root = /srv/www/mydomain.net/public_html

Directory Indexes = index.html

and the following parameters in the Behavior tab:

Directory / handled by List&Send with "alternate" Document Root = /srv/www/
mydomain.net/public.html/static

And this setup works as expected when I place "index.html" in /static but
not when I put it in /public_html.

I think I understand what's going on: the rule for "Directory /" is working
as expected.  But way back on the "Basic" page I was confused, because at
that point I thought that Cherokee would look for indexes in the Document
Root set in the Basic tab.  True, that's not what Cherokee said.  But I was
able to fool myself into expecting that without realizing that it might be a
bad assumption.

So is it accurate for me to say the following?

*Cherokee strips the server-relative path from the URL, then appends that
result to the Document root, then matches that result against Behavior
Rules, then substitutes the Alternate Document Root for any matching
Behavior Rules (in order of matching) until the behavior is finalized, and
then --if the URL was a bare path and not a specific file -- passes the
first-found of the named Directory Indexes files to the Handler associated
with the final matching Behavior Rule?
*

Whew!  Please help me improve my understanding.  I think I need a
flowchart!  :)

Thanks,
cm
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to