You can't do this within the same web application. You should be able to do this if you have a separate web application for each CGI executable. You will have to configure the cgi servlet differently in each web application.
Mark > -----Original Message----- > From: zhicheng wang [mailto:[EMAIL PROTECTED] > Sent: Saturday, April 24, 2004 10:09 AM > To: [EMAIL PROTECTED] > Subject: RE: tomcat 5 and cgi-bin > > thanks Mark > > suppose that i can use more than one app? such as > > <init-param> > <param-name>executable</param-name> > <param-value>XXXapp</param-value> > </init-param> > > <init-param> > <param-name>executable</param-name> > <param-value>YYYapp</param-value> > <init-param> > > ? > > cheng > > > > > --- Mark Thomas <[EMAIL PROTECTED]> wrote: > Prior to > 5.0.17, the cgi executable was hardcoded to > > perl. From 5.0.17 onwards > > this is configurable. For example, if you wanted to > > use XXXapp as the perl > > executable, edit conf/web.xml to look something > > this: > > > > <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> > > <init-param> > > <param-name>executable</param-name> > > <param-value>XXXapp</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> > > > > Alternatively you can put this in the web.xml for > > you web app. Note that XXXapp > > must be on your path. > > > > Mark > > > > > From: zhicheng wang [mailto:[EMAIL PROTECTED] > > > > > i am trying to upgrade our server to t5, but the > > > cgi-bin now only allows perl programs to be > > executed > > > (by default). for compiled c or c++ etc, how do i > > > modify the web.xml? > > > > > > ===== > Best wishes > Z C Wang > > > > > > ____________________________________________________________ > Yahoo! Messenger - Communicate instantly..."Ping" > your friends today! Download Messenger Now > http://uk.messenger.yahoo.com/download/index.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
