Hello. I've written a module for name-based virtual hosting with AOLserver.
It's written mostly for my needs, but may be useful to some people (I'm too lazy to package/describe it unless someone's interested :). The module only handles url->file, I wanted to use one nsd for massive vhosting. It uses a file for vhosting transformation definitions and Tcl for real domain->path handling. It uses Ns_Cache*() for speedup. Tcl allows almost any domain->path handling (I currently translate www.user.tcl.pl to ~user/public_html and www.something.user.tcl.pl to ~user/public_html/something among other transformations :). Performance's not bad - about 0,5% slower with nssmartvh.so and the Tcl code loaded. It also handles 'ns_returnredirect /relative/url' well. If there are people any interested, let me know, I'll package it. -- WK
