Home > Archive > PERL Beginners > April 2005 > Very basic question about running perl cgi on tomcat
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Very basic question about running perl cgi on tomcat
|
|
| Robert Kerry 2005-04-25, 3:56 pm |
| I changed the web.xml file and the .jar suffix as required, and create
a new directory WEB-INF/cgi/ under webapps/ directory, I put my
first.pl into that directory, and try to visit it using
http://localhost:8080/cgi/first.pl but it doesn't work. I've also
tried /cgi-bin/first.pl and something else, always give me HTTP 404
file not found error. What should I do? Thank you.
Robert.
| |
| Robert Kerry 2005-04-25, 8:55 pm |
| Chris,
Thanks. I'm not switching to apache http server.
Unfortunately the same thing happened again. I put the
first.pl in the /cgi-bin/ directory and try to access it via
http://localhost/cgi-bin/first.pl, it tells me that file not found.
I don't know what I should do for httpd.conf file. Thanks.
Robert.
On 4/25/05, Chris Devers <chris.devers@gmail.com> wrote:
> On 4/25/05, Robert Kerry <kerry.robert@gmail.com> wrote:
>=20
> You mean, what should you do aside from hope that Perl will just
> magically execute from within a *Java* application server ??
>=20
> Maybe I'm misinformed, but Tomcat is as far as I know only for running
> code written in Java (or weird hybrids like Jython).
>=20
> If you want to run Perl, why aren't you running Apache/CGI or Apache/mod_=
perl?
>=20
> --
> Chris Devers
>
| |
|
|
|
|
|