Alvaro Lopez Ortega wrote:
I want to explain some of these new features:
> - New features:
> * Directory configuration inheritance
From this moment, it is possible to do things like this:
===
Directory /books {
Handler common
}
Directory /books/secret {
Auth basic {
Name "Secret books"
Method pam
}
}
====
It isn't longer needed the declare that /books/secret uses the
"common" handler. If it doesn't declare one, it will use the nearest
parent configuration for it.
Another example could be:
====
Directory / {
Handler common
}
Directory /books {
Auth basic {
Name "Secret books"
Method pam
}
}
Directory /books/cherokee {
DocumentRoot /usr/share/cherokee/icons
Handler file
}
====
Isn't it cool? :-)
> * Configuration by extension
It also supports configuration by extension. It means that you can
configure the behavior of the server not just looking at the directory
but looking at the file extensions, for example:
====
Extension php, php4 {
Handler phpcgi
}
====
From that moment, all the .php and .php4 files of the server will be
executed as PHP scripts, no mater were are located.
Of course it is consistent and well integrated with the rest of the
server. I mean, if you have something like this in your configuration file:
====
DirectoryIndex index.php, index.html, /indixer.php
Extension php {
Handler php
}
Directory / {
handler common
}
====
it will work as everybody expects. If you request for http://host/dir
and there is neither index.php or index.html there, it will execute as
PHP the /indexer.php script (/var/www/indexer.php in Debian)
> * Internal redirections
It will become a new public feature in the next releases, at this
moment it is internal stuff that I had to write down to implement the
previous features.
This is all by the moment.. please, don't hesitate to reply this mail
with your feature request, suggestions or thoughts.
Ah! and stay tunned, we are speeding up! ;-)
--
Greetings, alo.
http://www.alobbs.com
_______________________________________________
Cherokee mailing list
[email protected]
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee