tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brelsfoard, Alex" <al...@WPI.EDU>
Subject RE: Trouble getting CGI script to execute
Date Thu, 10 Feb 2005 13:52:39 GMT
No worries.  I really appreciate any help I can get.  I'm familiar with
Apache, but I've just been tossed Tomcat and already have projects that
"need" to be finished in a timely manner.  Such is the life of our line of
work...
Thanks.
--Alex
 
Alex Brelsfoard
Web Applications Developer
Web Development Office
Worcester Polytechnic Institute
508-831-6147
alexb@wpi.edu 

________________________________

From: Warron French [mailto:wfrench@xtria.com]
Sent: Wed 2/9/2005 6:24 PM
To: Tomcat Users List
Subject: RE: Trouble getting CGI script to execute



Sorry, hopefully I haven't misguided you.  I don't know tomcat at all.  I
don't really know Jboss either, but eventually I will be learning it too.


Warron French
Sr. Network Engineer
Xtria, LLC

-----Original Message-----
From: Brelsfoard, Alex [mailto:alexb@WPI.EDU]
Sent: Tuesday, February 08, 2005 4:00 PM
To: Tomcat Users List
Subject: RE: Trouble getting CGI script to execute


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
alexb@wpi.edu

-----Original Message-----
From: Warron French [mailto:wfrench@xtria.com]
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:alexb@WPI.EDU]
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
alexb@wpi.edu



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


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


Mime
View raw message