This is one area I was not entirely sure about.  I did uncomment everything
and did NOT change anything.
I do not really have a ROOT url.  I setup a "/cgi-bin" directory in
server.xml.  I then created a WEB-INF and cgi folders and placed my script in
there.
So the path to the file is /path/cgi-bin/WEB-INF/cgi/script.cgi
And the URL: domain.com/cgi-bin/script.cgi
Did I miss something here?
Thanks.
--Alex


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

-----Original Message-----
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 08, 2005 3:55 PM
To: Tomcat Users List
Subject: Re: Trouble getting CGI script to execute

Exactly where did you put your script? If you follow
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cgi-howto.html and use the
defaults it is impossible to see the text of your script.

Assuming you only uncommented the global web.xml and did not edit any of the
settings, your script should be in:
/WEB-INF/cgi/

and it is accessed through
/yourcontext/cgi-bin/yourscript.cgi

Mark


Brelsfoard, Alex wrote:
> 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