You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Doug MacEachern <do...@covalent.net> on 2002/09/05 03:58:21 UTC
$r->add_config
a new feature that may be of interest..
new method just added allows one to configure the server at request time,
similar to how .htaccess works, but without the file.
for example, to require authentication on the fly, at any point in the
request before the authen phase is run, one can call:
my $user = 'valid-user';
$r->add_config(["require $user"]);
this method is thread-safe, tho i have not measured performance impact.
impact will depend on the directive and exising configuration, as it will
trigger per-dir create for the given module and perhaps a per-dir merge.
also note, Apache::Directive->insert has been changed to
Apache::Server->add_config. modperl_extra.pl still serves as the example
in ModPerl::Test::perl_section.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: $r->add_config
Posted by Ask Bjoern Hansen <as...@develooper.com>.
On Wed, 4 Sep 2002, Doug MacEachern wrote:
yay, this stuff is getting too cool.
Looks like even more fun than when [01].x was getting new fancy
features by the week. :-)
- ask
--
ask bjoern hansen, http://www.askbjoernhansen.com/ !try; do();
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org