You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by gerard uolaquetalestem <vi...@mixmail.com> on 2004/01/20 20:43:25 UTC

Re: perl sections howto? (bug?)

I've tested what you've said (Stas) and ... it worked!! yes, the "commas" were necessary,
okay, then i have emotionated myself and i have taken all the sections to my .pl archive
and ... it has not worked!!! arghhhh!! uggghhhh!!!

But after spending my evening (another day without gym) i've found (i think) what's happening.

My <PERL> sections in my .pl file ONLY will work if in the original httpd.conf there is a
<PERL> section (before or after the require function).
Then i've tested this
-----------------------------------------------------------
my .pl archive is:
..
my $b_config = <<'END';
<Perl >
$Directory{'f:/projectes/sites/blogum.org'} = {
	PerlHeaderParserHandler => "Blogum::BlogumHeaders",
	Options => "All -Indexes",
	AllowOverride => "All",
	Order => "allow,deny",
	Allow => "from all",
	DirectoryIndex => "main.bhtml",
	AddOutputFilter => "INCLUDES .bhtml .html",
	Files => {
		"*.bhtml" => {
		PerlOutputFilterHandler => "Blogum::BlogumFilter",
		},
	    },
	};
</Perl>
END
Apache->server->add_config([split /\n/, $b_config]);
..
-----------------------------------------------------------
my httpd.conf that DO NOT WORK
PerlRequire f:/tools/apache2/conf/blogum.pl
blogum.org just is denied
-----------------------------------------------------------
my httpd.conf that DO WORK
<Perl >
$Directory{'f:/projectes/sites'} = {
	Options => "All -Indexes",
	AllowOverride => "All",
	Order => "allow,deny",
	Allow => "from all",
	DirectoryIndex => "webs.html",
	};
</Perl>
PerlRequire f:/tools/apache2/conf/blogum.pl
-----------------------------------------------------------
I have tested many times so i am sure of this, then, am i doing something wrong and this
is an stupid way to act?????
But finally, i can sleep at nights :D
-----

Ya.com ADSL:�PROMOCI�N! Router 3Com Wireless 11g + 1 Mes + Alta �Gratis! http://acceso.ya.com/adsl/256router/

No te pierdas tu futuro... est� en nuestro <a target="_blank" href="http://rappelweb.mujeractual.com/tienda/tarot.cfm">Tarot</a>


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: perl sections howto? (bug?)

Posted by Stas Bekman <st...@stason.org>.
gerard uolaquetalestem wrote:
> I've tested what you've said (Stas) and ... it worked!! yes, the "commas" were necessary,

Good ;) s/commas/quotes/

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html