htscanner is an extension to emulate htaccess with non apache SAPI like FastCGI. It was originally developed by Bart Vanbrabant (Thanks to Runa@lighttpd on freenode for the head up, I did not know this extension until yesterday). It has the same advantages and disadvantages than Apache’s htaccess, use it with cautions 
Many lighttpd users asked for such feature for PHP. After a quick test, I find it useful too and good enough to give it some love. As Bart does not maintain it anymore, I’m taking the hand on it and will continue the developments via PECL.
This release (0.5.0) contains a couple of additions and fixes, the most important are:
- safe mode and open_basedir checks
- usage of PHP streams API instead of the std IO
- fix a couple of bugs in threaded environments (like cwd detection)
It is still alpha, I did not run heavy tests now, comments and feedbacks welcome.