1)The CGI is a way for a web server to interact with external content-generating programs, which are often referred to as CGI(Common Gateway Interface) programs
2)CGI support can be added when you are using Tomcat as your HTTP server and require CGI support.
3)Tomcat CGI support is implemented using the servlet class org.apache.catalina.servlets.CGIServlet. This servlet is mapped to the URL pattern "/cgi-bin/*".
Note : By default CGI support is disabled in Tomcat.
How To Enabe CGI (Common Gateway Interface) :
1) Uncomment the CGIServlet from web.xml file under TOMCAT_HOME/CONF folder that's commented by default .
2) Uncomment mapping for the CGI Gateway servlet from web.xml file under TOMCAT_HOME/CONF folder that's commented by default .
3) Add the priviliged ="true" in context.xml file under TOMCAT_HOME/CONF folder.
No comments:
Post a Comment