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 Tue, 27 Apr 2004 10:35:19 GMT
thank Mark
just for enyone who may need this, 

 <init-param>
   <param-name>executable</param-name>
   <param-value></param-value>
 </init-param>

will enable everything to be executed. may be carrying
some security risk, but it is OK for intranet.

cheng


 --- Mark Thomas <markt@apache.org> wrote: > 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:wang_zc@yahoo.co.uk] 
> > Sent: Saturday, April 24, 2004 10:09 AM
> > To: tomcat-user@jakarta.apache.org
> > 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 <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
> > 
> > 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
>  

=====
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