I'm closer than ever with my dynamic scripting code, but I've hit a peculiar problem with Apache's #exec virtual directive. It doesn't create quite the same CGI environment as Apache's normal CGI invocation does.
While this in and of itself is probably desirable, the actual problem is that mishandles the SCRIPT_NAME environment variable. Under normal CGI invocation, you can call a CGI script as /server/cgi-bin/script/extra/path?parameters&start&here and the bit /extra/path lands in PATH_INFO while SCRIPT_NAME contains /cgi-bin/script. The #exec virtual directive, however, forgets to strip the contents of PATH_INFO off the end of SCRIPT_NAME.
Anyone else seen this problem?
Wade.