I use apache to enable cgi scripts, and I had the same problem as you.

So, since I don't know Tomcat so well, I can offer you this.

Check in your config file to make sure that you have the line(s):

AddType application/x-httpd-cgi .cgi .sh .pl
AddHandler cgi-script .cgi .sh .pl   (I am not actually using this line but 
maybe you need to)

Also, in my httpd.conf file I am using some directives and options such as:

        <Directory "/home/nrccwdt/public_html/">
                Options +Includes +ExecCGI
                XbitHack On
        </Directory>

I am sure you know how the Directory directive works, but make sure that you do 
have the Options +ExecCGI, and XbitHack On lines also.

Good luck,
Warron French
Sr. Network Engineer
Xtria, LLC

-----Original Message-----
From: Brelsfoard, Alex [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 08, 2005 3:28 PM
To: tomcat-user@jakarta.apache.org
Subject: Trouble getting CGI script to execute


I have been reading all the online documentation I can dig up and cannot find
the solution to my problem.
Quite simply, all I want to do is be able to run perl cgi script through my
Tomcat server.  I uncommented everything having to do with CGI in the Tomcat
web.xml conf file, restarted the server and placed my scriptmin the right
place.  All that happens now is the script is printed up to the screenjust
like a txt file.  It is executable.  I checked the logs and the log says that
a 304 code is sent to the browser.
ANY help would be much appreciated.
Thanks very much.
--Alex
 

Alex Brelsfoard 
Web Applications Developer 
Web Development Office 
Worcester Polytechnic Institute 
508-831-6147 
[EMAIL PROTECTED] 

 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to