ns_register_cgi - Register CGI handlers
This document describes how to register a CGI handler programmatically.
The command registers a handler requests matching method and URL to be handled as CGI programs. The specified URL can contain a match pattern, which is handled by the NaviServer urlspace (like in ns_register_proc). The match will always be a match on the last URL segment, unless -matchsegments is specified.
If -noinherit is specified, the request URL must match the directory of the registered URL.
If -matchsegments is specified, the pattern will be matched with all segments of the request URL.
The -path specifies the source location for the files in case the request URL matches the register URL. The provided source location is registered via ns_register_fasturl2file such that fastpath can resolve the request path against this source location.
Handlers registered with ns_register_cgi can be unregistered via ns_unregister_op. In case the -path was specified, it can be unregistered with ns_unregister_url2file.
ns_register, ns_register_fasturl2file, ns_unregister_op