Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

client denied by server configuration: C:/Apache2

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


sandhya.pawar03 at gmail

Apr 14, 2009, 10:15 AM

Post #1 of 2 (1239 views)
Permalink
client denied by server configuration: C:/Apache2

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 "<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";
}
#sleep(10);
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
</Location>


But it gives the error 403 in browser and in log

client denied by server configuration: C:/Apache2


randy.kobes at gmail

Apr 14, 2009, 11:12 AM

Post #2 of 2 (1172 views)
Permalink
Re: client denied by server configuration: C:/Apache2 [In reply to]

On Tue, Apr 14, 2009 at 12:15 PM, sandhya pawar
<sandhya.pawar03 [at] gmail> wrote:
> I have saved the following file C:\Program Files\Apache Software
> Foundation\Apache2.2\Perl\printenv.cgi
[ ... ]
> 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
>   </Location>
>
> But it gives the error 403 in browser and in log
>
> client denied by server configuration: C:/Apache2

That error indicates that there's a reference to C:\Apache2 somewhere
in your httpd.conf that you didn't include in the above snippet. If
there is such a reference, and you don't use it, try commenting it
out, as in the first line you included above:
# Alias /perl/ "/Apache2/perl/"

--
best regards,
Randy

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.