perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bharanee rathna" <deepfr...@gmail.com>
Subject Re: Perl section and request object
Date Wed, 19 Sep 2007 10:00:15 GMT
me thinks that PerlOptions +GlobalRequest should be inside your <Directory>
or  <Location> section.

http://perl.apache.org/docs/2.0/user/config/config.html#mod_perl_Directives_Argument_Types_and_Allowed_Location



On 9/19/07, antoine7 <antoine@7enlocation.com> wrote:
>
>
> Hello,
>
> I'm new to mod perl, I've setup an apache2 / MP2 on an linux debian etch
> server.
> I want to access in my apache conf to the HTML Request Header Host:
>
> I've written this code :
>
> NameVirtualHost 192.168.1.203
> UseCanonicalName Off
>
> PerlOptions +GlobalRequest
>
> <Perl>
>         use Apache2::RequestUtil ();
>         my $r = Apache2::RequestUtil->request;
>         [...]
> </Perl>
>
> But when I restart the server I get the following error message
> etch:~# /etc/init.d/apache2 restart
> Forcing reload of web server (apache2)...Syntax error on line 7 of
> /etc/apache2/sites-enabled/999-vhost:
> \t(in cleanup) Global $r object is not available. Set:\n\tPerlOptions
> +GlobalRequest\nin httpd.conf at /etc/apache2/sites-enabled/999-vhost line
> 9.\n
> failed!
>
> But I've already add PerlOptions +GlobalRequest ...
>
> Has anyone got an idea ?
>
> Thanks
> --
> View this message in context:
> http://www.nabble.com/Perl-section-and-request-object-tf4479522.html#a12773009
> Sent from the mod_perl - General mailing list archive at Nabble.com.
>
>

Mime
View raw message