You can control the behavior of AOLserver's CGI interface by setting parameters in a configuration file. For example, you can control which files and directories are treated as CGI programs, you can determine how to run various types of programs, and you can set a group of environment variables for each type of program you use.
Note that if you're defining multiple servers, you will need to configure the CGI interface for each server.
ns_section "ns/server/Server1/modules" ns_param nscgi nscgi.so
ns_section "ns/server/Server1/modules/nscgi"
ns_section "ns/server/Server1/modules/nscgi" ns_param Map "GET /cgi /usr/local/cgi" ns_param Map "POST /*.cgi"
ns_section "ns/server/Server1/modules/nscgi" ns_param Map "GET /cgi /usr/local/cgi" ns_param Map "POST /*.cgi" ns_param Interps CGIinterps
ns_section "ns/interps/CGIinterps" ns_param .pl "c:\perl\bin\perl.exe" ns_param .sh "c:\mks\mksnt\sh.exe(MKSenv)"
ns_section "ns/server/Server1/modules/nscgi" ns_param Map "GET /cgi /usr/local/cgi" ns_param Map "POST /*.cgi" ns_param Interps CGIinterps ns_param Environment CGIenvironment
ns_section "ns/interps/CGIenvironment" ns_param var1 var1-definition ns_param var2 var2-definition