Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 41571 invoked from network); 19 Feb 2008 20:50:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2008 20:50:24 -0000 Received: (qmail 6210 invoked by uid 500); 19 Feb 2008 20:50:14 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 6194 invoked by uid 500); 19 Feb 2008 20:50:14 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 6183 invoked by uid 99); 19 Feb 2008 20:50:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2008 12:50:14 -0800 X-ASF-Spam-Status: No, hits=-2.0 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [162.136.190.52] (HELO netmail06.thehartford.com) (162.136.190.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2008 20:49:41 +0000 Received: from simzixvpm005.thehartford.com (simzixvpm005.thehartford.com [172.30.85.39]) by netmail06.thehartford.com (Switch-3.2.6/Switch-3.2.6) with ESMTP id m1JKnlQZ014529 for ; Tue, 19 Feb 2008 15:49:49 -0500 (EST) Received: from simzixvpm005.thehartford.com (ZixVPM [127.0.0.1]) by Outbound.thehartford.com (Proprietary) with ESMTP id 9685C4BE61 for ; Tue, 19 Feb 2008 15:49:49 -0500 (EST) Received: from isdmtavsp02.thehartford.com (isdmtavsp02.thehartford.com [172.30.154.11]) by simzixvpm005.thehartford.com (Proprietary) with ESMTP id C82CE4BE5B for ; Tue, 19 Feb 2008 15:49:48 -0500 (EST) Received: from AD1SIMDLP001.ad1.prod (ad1simdlp001.ad1.prod [172.30.89.89]) by isdmtavsp02.thehartford.com (MTAV) with SMTP id B6F39D5803F for ; Tue, 19 Feb 2008 15:49:48 -0500 (EST) Received: from ad2simmsw007.ad2.prod (ad2simmsw007.ad2.prod [172.30.84.92]) by isdmtavsp02.thehartford.com (MTAV) with ESMTP id AF340D5803B for ; Tue, 19 Feb 2008 15:49:48 -0500 (EST) Received: from AD1SIMEXI301.ad1.prod (ad1simexi301.ad1.prod) by ad2simmsw007.ad2.prod (Content Technologies SMTPRS 4.3.20) with ESMTP id for ; Tue, 19 Feb 2008 15:49:48 -0500 Received: from AD1HFDEXC308.ad1.prod ([10.129.76.36]) by AD1SIMEXI301.ad1.prod with Microsoft SMTPSVC (6.0.3790.1830); Tue, 19 Feb 2008 15:49:48 -0500 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C87338.F73D16CB" Subject: Problem running Perl scripts with mod_perl from Alias directory Date: Tue, 19 Feb 2008 15:49:47 -0500 Message-ID: <9E5E205D62492E4C90F69960C5AA7D150499E0BA@AD1HFDEXC308.ad1.prod> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem running Perl scripts with mod_perl from Alias directory Thread-Index: AchyhU7cATlD1jZXRk+Zk4IsvxQp7QApxRXw References: <9E5E205D62492E4C90F69960C5AA7D150487A50D@AD1HFDEXC308.ad1.prod> <9E5E205D62492E4C90F69960C5AA7D150499DBF0@AD1HFDEXC308.ad1.prod> <9E5E205D62492E4C90F69960C5AA7D150499DCC6@AD1HFDEXC308.ad1.prod> <9E5E205D62492E4C90F69960C5AA7D150499DCE7@AD1HFDEXC308.ad1.prod> From: "Billeb, Andrew (ATS, IT)" To: Cc: "Billeb, Andrew (ATS, IT)" X-OriginalArrivalTime: 19 Feb 2008 20:49:48.0504 (UTC) FILETIME=[F7562580:01C87338] X-Compliance: Pass X-Virus-Checked: Checked by ClamAV on apache.org This 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 =20 SetHandler perl-script=20 PerlResponseHandler ModPerl::Registry=20 Options +ExecCGI=20 PerlOptions +ParseHeaders=20 =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 Problem running Perl scripts with mod_perl from Alias directory</TIT= LE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">Hello mod_perl Gurus,= </FONT></SPAN> </P> <P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">I'm not sure if this = is a mod_perl issue or just an Apache configuration issue.  Please red= irect me if appropriate.</FONT></SPAN> </P> <P><SPAN LANG=3D"en-us"><B><FONT SIZE=3D2 FACE=3D"Arial">My Configuration:<= /FONT></B></SPAN> <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">Apache/2.2.8 (Win32)= </FONT></SPAN> <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">Perl:</FONT> <FONT S= IZE=3D2 FACE=3D"Arial">v5.8.8</FONT></SPAN> <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">mod_perl 2.0</FONT><= /SPAN> <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">I have also followed= all the directions through the Registry Scripts section at: </FONT></SPAN>= <A HREF=3D"http://perl.apache.org/docs/2.0/os/win32/config.html"><SPAN LANG= =3D"en-us"><U><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">http://perl.a= pache.org/docs/2.0/os/win32/config.html</FONT></U></SPAN></A><SPAN LANG=3D"= en-us"></SPAN></P> <P><SPAN LANG=3D"en-us"><B><FONT SIZE=3D2 FACE=3D"Arial">Here's The Problem= </FONT></B></SPAN> <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">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</FONT> <FONT SIZE=3D2 FACE=3D"Arial">from this type of URL</FONT><FONT = SIZE=3D2 FACE=3D"Arial">: </FONT></SPAN></P> <P><SPAN LANG=3D"en-us">        </SPAN><= A HREF=3D"http://localhost/cgi-bin/ridhwan/script_name.pl"><SPAN LANG=3D"en= -us"><U><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">http://localhost/cg= i-bin/ridhwan/script_name.pl</FONT></U></SPAN></A><SPAN LANG=3D"en-us"><FON= T SIZE=3D2 FACE=3D"Arial"> </FONT></SPAN> </P> <P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">I would like to</FONT= > <FONT SIZE=3D2 FACE=3D"Arial">use mod_perl to handle these scripts. = So, rather than set up a new directory on the filesystem, I have</FONT> <F= ONT SIZE=3D2 FACE=3D"Arial">put the following in the httpd.conf file</FONT>= <FONT SIZE=3D2 FACE=3D"Arial">.  Note that it is supposed to remove th= e /cgi-bin/ part of the path</FONT><FONT SIZE=3D2 FACE=3D"Arial">: </FONT><= /SPAN></P> <P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial"> </FONT></SPAN> <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">Alias /ridhwan/ &quo= t;C:/Apache2/cgi-bin/ridhwan/" </FONT></SPAN> <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial"><Location /ridhwa= n> </FONT></SPAN> <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">   SetHand= ler perl-script </FONT></SPAN> <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">   PerlRes= ponseHandler ModPerl::Registry </FONT></SPAN> <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">   Options= +ExecCGI </FONT></SPAN> <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">   PerlOpt= ions +ParseHeaders </FONT></SPAN> <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial"></Location> </= FONT></SPAN> </P> <P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">The result is that wh= en I click on</FONT><FONT SIZE=3D2 FACE=3D"Arial"> a URL like the following= (i.e. missing the the /cgi-bin/)</FONT><FONT SIZE=3D2 FACE=3D"Arial">: </F= ONT></SPAN> </P> <P><SPAN LANG=3D"en-us">        </SPAN><= A HREF=3D"http://localhost/ridhwan/script_name.pl"><SPAN LANG=3D"en-us"><U>= <FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">http://localhost/ridhwan/sc= ript_name.pl</FONT></U></SPAN></A><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE= =3D"Arial"> </FONT></SPAN> </P> <P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">the script displays f= ine</FONT><FONT SIZE=3D2 FACE=3D"Arial">….</FONT><FONT SIZE=3D2 FACE= =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.</F= ONT><FONT SIZE=3D2 FACE=3D"Arial">  It's just being</FONT> <FONT SIZE= =3D2 FACE=3D"Arial">accessed through the alias.</FONT> <FONT SIZE=3D2 FACE= =3D"Arial">So, I don't understand why it doesn't work.</FONT></SPAN></P> <P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">Any idea what's wrong= </FONT><FONT SIZE=3D2 FACE=3D"Arial">?</FONT></SPAN> </P> <P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">Thanks,</FONT></SPAN> <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">Andrew</FONT></SPAN> </P> <FONT SIZE=3D3><BR> <BR> *************************************************************************<B= R> This communication, including attachments, is<BR> for the exclusive use of addressee and may contain proprietary,<BR> confidential and/or privileged information. If you are not the intended<BR> recipient, any use, copying, disclosure, dissemination or distribution is<B= R> strictly prohibited. If you are not the intended recipient, please notify<= BR> the sender immediately by return e-mail, delete this communication and<BR> destroy all copies.<BR> *************************************************************************<B= R> </FONT> </BODY> </HTML> ------_=_NextPart_001_01C87338.F73D16CB--