Implement the CGIServlet. 

In $CATALINA_HOME/conf/web.xml, uncomment: 

  <servlet>
    <servlet-name>cgi</servlet-name>
   
<servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
    <init-param>
      <param-name>clientInputTimeout</param-name>
      <param-value>100</param-value>
    </init-param>
    <init-param>
      <param-name>debug</param-name>
      <param-value>6</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>

There are configuration comments in web.xml for how to set the params. 

One caveat: The CGIServlet only works with GET requests, not POST.

-August



--- James Williamson <[EMAIL PROTECTED]> wrote:
> It all depends what Tomcat/Apache connector you're
> using, by default you can't stop requests being redirected
> to Tomcat using mod_webapp, although you can with jk.
> 
> Regards, 
> 
> James Williamson
> www.nameonthe.net
> UK Tomcat Hosting
> 
> ----- Original Message ----- 
> From: Ken Anderson <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Sent: Friday, May 03, 2002 12:26 AM
> Subject: Re: cgi-bin
> 
> 
> > kidding?
> > um... rewrite them as servlets, or reinstall apache.
> > Ken
> > 
> > 
> > Oki DZ wrote:
> > > Hi,
> > > 
> > > I replaced Apache with Tomcat; problem is, what should I do so
> that 
> > > these cgi scripts could get executed...?
> > > 
> > > Thanks in advance,
> > > Oki
> > > 
> > > -- 
> > > To unsubscribe:  
> <mailto:[EMAIL PROTECTED]>
> > > For additional commands:
> <mailto:[EMAIL PROTECTED]>
> > > Troubles with the list:
> <mailto:[EMAIL PROTECTED]>
> > > 
> > > 
> > > 
> > 
> > 
> > 
> > --
> > To unsubscribe:  
> <mailto:[EMAIL PROTECTED]>
> > For additional commands:
> <mailto:[EMAIL PROTECTED]>
> > Troubles with the list:
> <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to