The CGI (Common Gateway Interface) defines a way for a web server to
interact with external content-generating programs, which are often
referred to as CGI programs or CGI scripts.
CGI (Common Gateway Interface) は、 Web サーバが外部のコンテンツ生成プログラムとやりとりする方法を定義するもので、
コンテンツ生成プログラムはCGIプログラムやCGIスクリプトとも呼ばれます。
Within Tomcat CGI support can be added when using Tomcat as your
HTTP server and you require CGI support. Typically this is done
during development when you don't want to run a web server like Apache.
TomcatをHTTP サーバとして使っていて CGI 支援機能が必要になった場合には、
Tomcat に CGI 支援機能を加えることができます。Apache などの Webサーバを
使わずに開発する場合が典型的です。
CGI support is implemented using the servlet class
org.apache.catalina.servlets.CGIServlet. Traditionally,
this servlet is mapped to the URL pattern "/cgi-bin/*".
CGI 支援機能は org.apache.catalina.servlets.CGIServlet
という サーブレットクラスを使って実装されています。従来このーブレットは、
"/cgi-bin/*"という URL パターンにマップされていました。
By default CGI support is disabled in Tomcat.
Tomcatのデフォルトでは、CGI 支援機能は無効になっています。