Problem running Perl scripts with mod_perl from Alias directory
am 19.02.2008 21:49:47 von Andrew.BillebThis is a multi-part message in MIME format.
------_=_NextPart_001_01C87338.F73D16CB
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hello mod_perl Gurus,
I'm not sure if this is a mod_perl issue or just an Apache configuration
issue. Please redirect me if appropriate.
My Configuration:
Apache/2.2.8 (Win32)
Perl: v5.8.8
mod_perl 2.0
I have also followed all the directions through the Registry Scripts
section at: http://perl.apache.org/docs/2.0/os/win32/config.html
Here's The Problem
I have several Perl scripts and a module in C:/Apache2/cgi-bin/ridhwan/.
Each script has a submit button that will display a new page. All my
scripts work fine when accessed from this type of URL:=20
http://localhost/cgi-bin/ridhwan/script_name.pl=20
I would like to use mod_perl to handle these scripts. So, rather than
set up a new directory on the filesystem, I have put the following in
the httpd.conf file. Note that it is supposed to remove the /cgi-bin/
part of the path:=20
=20
Alias /ridhwan/ "C:/Apache2/cgi-bin/ridhwan/"=20
SetHandler perl-script=20
PerlResponseHandler ModPerl::Registry=20
Options +ExecCGI=20
PerlOptions +ParseHeaders=20
The result is that when I click on a URL like the following (i.e.
missing the the /cgi-bin/):=20
http://localhost/ridhwan/script_name.pl=20
the script displays fine....but clicking the submit button doesn't do
anything....it just redisplays the same page. But it's the *same script*
as in the first link. It's just being accessed through the alias. So, I
don't understand why it doesn't work.
Any idea what's wrong?
Thanks,
Andrew
************************************************************ *************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information. If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited. If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
************************************************************ *************
------_=_NextPart_001_01C87338.F73D16CB
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hello mod_perl Gurus,=
I'm not sure if this =
is a mod_perl issue or just an Apache configuration issue. Please red=
irect me if appropriate.
My Configuration:<=
/FONT>
Apache/2.2.8 (Win32)=
Perl:
IZE=3D2 FACE=3D"Arial">v5.8.8
mod_perl 2.0<=
/SPAN>
I have also followed=
all the directions through the Registry Scripts section at: =
=3D"en-us">http://perl.a=
pache.org/docs/2.0/os/win32/config.html
en-us">
Here's The Problem=
I have several Perl =
scripts and a module in C:/Apache2/cgi-bin/ridhwan/. Each script has a subm=
it button that will display a new page. All my scripts work fine when acces=
sed from this type of URL
SIZE=3D2 FACE=3D"Arial">:
<=
A HREF=3D"http://localhost/cgi-bin/ridhwan/script_name.pl">
-us">http://localhost/cg=
i-bin/ridhwan/script_name.pl
I would like to
> use mod_perl to handle these scripts. =
So, rather than set up a new directory on the filesystem, I have
. Note that it is supposed to remove th=
e /cgi-bin/ part of the path: <=
/SPAN>
Alias /ridhwan/ &quo=
t;C:/Apache2/cgi-bin/ridhwan/"
<Location /ridhwa=
n>
SetHand=
ler perl-script
PerlRes=
ponseHandler ModPerl::Registry
Options=
+ExecCGI
PerlOpt=
ions +ParseHeaders
</Location> =
FONT>
The result is that wh=
en I click on a URL like the following=
(i.e. missing the the /cgi-bin/):
ONT>
<=
A HREF=3D"http://localhost/ridhwan/script_name.pl">=
http://localhost/ridhwan/sc=
ript_name.pl
=3D"Arial">
the script displays f=
ine….
=3D"Arial">but clicking the submit button doesn't do anything....it just re=
displays the same page. But it's the *same script* as in the first link.
ONT> It's just being
=3D2 FACE=3D"Arial">accessed through the alias.
=3D"Arial">So, I don't understand why it doesn't work.
Any idea what's wrong=
?
Thanks,
Andrew
************************************************************ ************* R>
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information. If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is R>
strictly prohibited. If you are not the intended recipient, please notify<=
BR>
the sender immediately by return e-mail, delete this communication and
destroy all copies.
************************************************************ ************* R>
------_=_NextPart_001_01C87338.F73D16CB--