tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhicheng wang <wang...@yahoo.co.uk>
Subject RE: tomcat 5 and cgi-bin
Date Sat, 24 Apr 2004 09:09:21 GMT
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 <markt@apache.org> 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:wang_zc@yahoo.co.uk] 
> 
> > 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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message