perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antoine7 <anto...@7enlocation.com>
Subject Perl section and request object
Date Wed, 19 Sep 2007 08:43:25 GMT

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