perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sandhya pawar <>
Subject client denied by server configuration: C:/Apache2
Date Tue, 14 Apr 2009 17:15:51 GMT
I have saved the following file C:\Program Files\Apache Software

#  printenv -- demo CGI program which just prints its environment

  use strict;
  print "Content-type: text/html\n\n";
  print "<HTML><BODY><H3>Environment variables</H3><UL>";
  foreach (sort keys %ENV) {
    my $val = $ENV{$_};
    $val =~ s|\n|\\n|g;
    $val =~ s|"|\\"|g;
    print "<LI>$_ = \"${val}\"</LI>\n";
  print "</UL></BODY></HTML>";

and put the following code in httpd.conf

#Alias /perl/ "/Apache2/perl/"
 Alias /perl/ "C:/Program Files/Apache Software Foundation/Apache2.2/perl/"
  <Location /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

View raw message