OK, now we're getting somewhere.  There was no entry for mime-type for file
extension cgi.  I added:
    <mime-mapping>
        <extension>cgi</extension>
        <mime-type>application/x-httpd-cgi</mime-type>
    </mime-mapping>
Which was not there before.  Do I have the correct "mime-type" info there?
When I go to my script (via the web) now it asks me to download the file.
This mean something to someone?
Thanks.
--Alex 


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

-----Original Message-----
From: Warron French [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 08, 2005 3:42 PM
To: Tomcat Users List
Subject: RE: Trouble getting CGI script to execute

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]


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

Reply via email to