This page allows you to specify a directory that will hold only CGI programs.
You can also edit and remove current CGI directory mappings. CGI programs are an excellent way to extend the capabilities of your server. However, they can also be somewhat of a security risk; you may want to be able to keep tabs on all of them in one directory.
Alternately, you can activate CGI as a file type
for part of your server. If you do this, then any files with the
.cgi
extension will be interpreted by the server as a CGI
program. This allows you to keep your CGI programs next to the HTML
files they may affect.
http://yourserver.subdomain.dom/cgi-bin/program.
Next, you should choose the directory you want that URL prefix to map to.
It should be a full system path. In the example above, the directory might
be /var/netsite/cgi-bin.