client denied by server configuration: C:/Apache2
am 14.04.2009 19:15:51 von sandhya pawar--000e0cd209d0986df6046786fb09
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
I have saved the following file C:\Program Files\Apache Software
Foundation\Apache2.2\Perl\printenv.cgi
# printenv -- demo CGI program which just prints its environment
use strict;
print "Content-type: text/html\n\n";
print "
Environment variables
- ";
- $_ = \"${val}\" \n";
foreach (sort keys %ENV) {
my $val = $ENV{$_};
$val =~ s|\n|\\n|g;
$val =~ s|"|\\"|g;
print "
}
#sleep(10);
print "
and put the following code in httpd.conf
#Alias /perl/ "/Apache2/perl/"
Alias /perl/ "C:/Program Files/Apache Software Foundation/Apache2.2/perl/"
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options +ExecCGI
PerlOptions +ParseHeaders
But it gives the error 403 in browser and in log
client denied by server configuration: C:/Apache2
--000e0cd209d0986df6046786fb09
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
I have saved=A0the following=A0file C:\Program Files\Apache Software Fou=
ndation\Apache2.2\Perl\printenv.cgi
#=A0 printenv -- demo CGI program which just prints its environment
=
=A0 use strict;
=A0 print "Content-type: text/html\n\n&qu=
ot;;
=A0 print "<HTML><BODY><H3>Environment varia=
bles</H3><UL>";
=A0 foreach (sort keys %ENV) {
=A0 my $val =3D $ENV{$_};
=
=A0 $val =3D~ s|\n|\\n|g;
=A0 $val =3D~ s|"|\\"|g;
=
=A0 print "<LI>$_ =3D \"${val}\"</LI>\n&qu=
ot;;
=A0 }
=A0 #sleep(10);
=A0 print "</UL></BODY></HTML>";
and put the following code in httpd.conf
#Alias /perl/ "/Apache2/perl/"
=A0Alias /perl/ "C:/Pro=
gram Files/Apache Software Foundation/Apache2.2/perl/"
=A0 <Loca=
tion /perl>
SetHandler perl-script
PerlR=
esponseHandler ModPerl::Registry
Options +ExecCGI
PerlOptions +ParseHeaders
=
=A0 </Location>
But it gives the error 403 in browser and in log
client denied by server configuration: C:/Apache2
=A0
--000e0cd209d0986df6046786fb09--