Alvaro Lopez Ortega wrote:
John Hampton wrote:
<snip>
 > Request "/projects/.+/login" {
 >     Auth {...}
 > }
 >
 > Request "/projects/.+/" {
 >   Handler cgi {
 >     Scriptalias /usr/share/trac/cgi-bin/trac.cgi
 >     Env TRAC_ENV_PARENT_DIR "/var/projects/trac"
 > }
<snip>
  Yeah, that configuration should work with the new Request entry
  support. I'm quite confident it is a good thing to have. The only
  thing left is to make a decision on how to manage the precedences
  between directories, extensions and requests.

Well, I think, as I said in my previous email, that if we adopted the original precedence scheme, the cases where we may have conflicts could be solved by using Request entries.

I can't really see if that is going to create more problems then it solves.

Setting precedence via order of appearance in config file seems pretty good, except it could get very confusing when using includes. For instance, if I set an Extention in my cherokee.conf and then set something that conflicts in my mods dir or my default site or some other dir that gets included, then it'll take the Extention set in cherokee.conf. I guess you can just make it clear in the documentation that that's a bad place for a setting like that. It's not really a problem that can't be solved, just one that seems like it will be a point of confusion as to why things seemingly aren't working.

The only other thing that I see with order of appearance, is that it's basically impossible to set global defaults and then override them later. Perhaps if you go for order of appearance, it would be better to say that later entries have higer precedence. That way you can set the extention first, and then override anything needed later. General to more specific.

Thinking about it some more, if order of appearance is used (and I'm not against it) I definitely think that the higher precedence should be set for things that appear later in the file.

  BTW, it seems like the configuration scheme we are proposing is far
  more readable than the Apache one. Grand. :-)

Oh hell yes! The configuration syntax for Cherokee was one of the main things that made me want to drop apache.

-John
_______________________________________________
Cherokee mailing list
[email protected]
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to