Hello All,

I would like to run CGI script using Apache tomcat server on Linux. I have
added following lines in apache/conf/web.xml file.and create directory
"cgi" inside WEB-INF with all necessary file/dir permission. Still I am
unable to run CGI script.
can someone suggest me how to configure CGI environment in Apache Tomcat
Server?

web.xml
-----------
  <servlet>
        <servlet-name>cgi</servlet-name>

<servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
        <init-param>
          <param-name>debug</param-name>
          <param-value>0</param-value>
        </init-param>
        <init-param>
          <param-name>cgiPathPrefix</param-name>
          <param-value>WEB-INF/cgi</param-value>
        </init-param>
         <load-on-startup>5</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>cgi</servlet-name>
        <url-pattern>/cgi-bin/*</url-pattern>
    </servlet-mapping>

Regards,
Suman

Reply via email to