Maxim Nechaev wrote: > Hi! > > I want set AuthName from hadler(), instead from httpd.conf. > I put in Authen handler: > > ... > sub handler > { > my $r = shift; > > $r->auth_name('Decline authorization'); > #^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > my ($status, $password) = $r->get_basic_auth_pw(); > return $status if($status != Apache::OK); > ... > > But it not work. In error_log appear a message: > Can't change AuthName to 'Decline authorization' > > What i do wrong?
this kind of activity looks to be governed by the same override rules as .htaccess files. so, try setting AllowOverride AuthConfig in the <Location> or <Directory> that is the focus of the request and see if that helps. --Geoff -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html