File name extensions may work. My approach has been to provide C code and an
externally callable program to unescape the URL's.
* By the way, I must admit I was very busy with AA when the original
* /htbin discussion went on. Was there a strong opposition to having
* scripts just anywhere and not only in bindir directory; and was there
* any reason for having the URL start with /htbin/ (I know that can
* be configured for NCSA server, but it is still constant once it's
* defined)?
It used to be, now it isn't. See below.
As far as the background of server scripts, there was never a discussion.
Nor was there any particular reason to pick /htbin. The script interface was
something I put together because I saw the gateway capabilities in Plexus
and thought it would be great to have them in our daemon. So I designed an
interface, implemented it, and released it. It was never intended as a
standard, it was just a feature.
* I've been thinking of having an exec rule that would, when URL
* matches a given template, execute a given script. Just for
* an example current htbin field in our rule file:
*
* htbin /x/y/z
*
* (which gives the physical bindirectory to CERN daemon) could be
* expressed as:
*
* exec /htbin/* /x/y/z/*
*
* This would free us from /htbin/ being translated specially in URL,
* and would introduce more flexibility and power to scripts.
*/
The ScriptAlias directive does that in 1.0a5. It's exactly like what you
describe above.
--Rob