That worked. Thanks! -----Original Message----- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2008 1:33 PM To: Tomcat Users List Subject: Re: 404 returned trying to find Perl script
[EMAIL PROTECTED] wrote: > I have a form that sends its data to a Perl script under Tomcat 6.0.16. > I get an error message "The requested resource > (/perlTest/WEB-INF/cgi-bin/form.pl) is not available." The form.pl file > is, in fact, in that folder. I'm running Windows XP. Permissions have > been set properly (using Cygwin chmod) to 0755. > > I just upgraded to Tomcat 6.0.16. I used to have my perl scripts in the > cgi-bin folder under the root context. I see now the cgi-bin folder has > been moved to 'WEB-INF'. > > This is reflected in %CATALINA_HOME%/conf/web.xml in an <init-param> > element as follows: > > <init-param> > <param-name>cgiPathPrefix</param-name> > <param-value>WEB-INF/cgi</param-value> > </init-param> > > in the cgi servlet definition. Your script should therefore be in /perlTest/WEB-INF/cgi/form.pl > > The <servlet-mapping> element appears as follows: > > <servlet-mapping> > <servlet-name>cgi</servlet-name> > <url-pattern>/cgi-bin/*</url-pattern> > </servlet-mapping> And you should request it using: cgi-bin/form.pl Mark --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]