in reply to cgi-bin in tomcat

cgi-bin is nothing but a convention. With the apache directive ScriptAlias for example you can designate as many directories for executable scripts as you want.

To say it in perlspeak: There is no magic in cgi-bin