On 10/8/03 12:45 PM, "Stas Bekman" <[EMAIL PROTECTED]> wrote:
> Chris M wrote: > >>> The opening is <Perl >, but the clsoing is </Perl>. It wan't the space in >>> the >>> opening tag, because in httpd-2.0 the parser requires an argument in all >>> containers (with a leading space), so opening <Foo> is invalid, but it's >>> always </Foo> in closing. >>> >>> ________________________________________ >> >> >> That is certainly good information, but I'm struggling to make use of it. > > So does it work ok now? No it doesn't work. And I'm probably no further along to understanding why since the docs are horked :) Here is what I get: Starting httpd: Syntax error on line 1112 of /etc/httpd/conf/httpd.conf: Perl not allowed here Here's the config: PerlModule Apache::ASP <Directory /usr/local/apache/htdocs/freeside-asp> <Files ~ (\.cgi)> AddHandler perl-script .cgi PerlHandler Apache::ASP </Files> <Perl > $MLDBM::RemoveTaint = 1; </Perl> PerlSetVar Global /usr/local/etc/freeside/asp-global/ PerlSetVar Debug 2 </Directory> Line 1112 is the line with </Perl> As Josh pointed out, maybe I don't need this line to RemoveTaint but I'd still like to know how it is supposed to work. :) It'd be nice if other people weren't tripping over this. I'm happy to try anything else you think would help. Regards, Chris > >> I was reading this: >> >> http://perl.apache.org/docs/1.0/guide/config.html#PerlSetVar_and_PerlAddVar >> >> Of course they use <Perl> and </Perl> there. > > Larry just posted a patch to fix that to the docs-dev list. I've pinged > Philippe to see whether it's cast in stone before applying that docs fix. > >> Apparently, you are saying 2.0 uses a different syntax? Since I'm using >> 1.99_09 I think we can assume that is close enough to 2.0 :) But I don't >> find anything on the web site about <Perl> under 2.0 > > http://perl.apache.org/docs/2.0/api/Apache/PerlSections.html > > most of the mp1 docs apply (besides the opening tag), and someone needs to > port them to mp2 docs. Can that someone please stand up? > > __________________________________________________________________ > Stas Bekman JAm_pH ------> Just Another mod_perl Hacker > http://stason.org/ mod_perl Guide ---> http://perl.apache.org > mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com > http://modperlbook.org http://apache.org http://ticketmaster.com >