On Sat, Feb 17, 2001 at 08:56:40PM +1100, Jie Gao wrote:
> Hi All,
>
> P. 417 of Eagle book has this:
>
> Directive is repeated mutiple times
>
> If a directive is repeated multiple times with different arguments each
> time, you can represent it as an array of arrays. This example using
> the AddIcon directive shows how:
>
> @AddIcon = (
> [ '/icons/compressed.gif' => qw(.Z .z .gz .tgz .zip) ],
> [ '/icons/layout.gif' => qw(.html .shtml .htm .pdf) ],
> )
>
> I am testing the limit directives in my <Perl> section:
>
> %LocationMatch = (
> '^/(myscript|cgi-bin)/' => {
> 'AuthName' => 'Elephant',
> 'AuthType' => 'Animals',
> 'AuthDBMUserFile' => '/mydir/userdbm',
> 'AuthDBMGroupFile' => '/mydir/groupdbm',
> 'PerlAuthenHandler' => 'Animals::ElephantCookieHandler->authen',
> 'PerlSetVar' => (
> [ 'VirtualServerName' => qw(www.myhouse.org) ],
> [ 'AuthCookieDebug' => 7 ],
> ),
syntactically, you need an array reference here, so try using:
'PerlSetVar' => [
[ 'VirtualServerName' => qw(www.myhouse.org) ],
[ 'AuthCookieDebug' => 7 ],
],
> 'SetHandler' => 'perl-script',
> 'Options' => '+ExecCGI -Indexes',
> 'PerlSetupEnv' => 'On',
> 'require' => 'valid-user',
> 'AllowOverride' => 'None',
> },
> )
>
Erdmut
--
Erdmut Pfeifer
science+computing gmbh
-- Bugs come in through open windows. Keep Windows shut! --