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 ],
),
'SetHandler' => 'perl-script',
'Options' => '+ExecCGI -Indexes',
'PerlSetupEnv' => 'On',
'require' => 'valid-user',
'AllowOverride' => 'None',
},
)
Apache complains about this:
handle_command (PerlSetVar "VirtualServerName" "www.myhouse.org"): perl_cmd_var:
'VirtualServerName'
= 'learnonline.usyd.edu.au'
OK
ARRAY(0x2fc014) Options (Invalid command 'ARRAY(0x2fc014)', perhaps mis-spelled or
defined by a module not
included in the server configuration) Limit=no
[Sat Feb 17 20:51:28 2001] [error] (22)Invalid argument: <Perl>: Invalid command
'ARRAY(0x2fc014)', perhaps
mis-spelled or defined by a module not included in the server configuration
valid-user AllowOverride (Invalid command 'valid-user', perhaps mis-spelled or defined
by a module not
included in the server configuration) Limit=no
[Sat Feb 17 20:51:28 2001] [error] (22)Invalid argument: <Perl>: Invalid command
'valid-user', perhaps
mis-spelled or defined by a module not included in the server configuration
On require (Invalid command 'On', perhaps mis-spelled or defined by a module not
included in the server
configuration) Limit=no
[Sat Feb 17 20:51:28 2001] [error] (22)Invalid argument: <Perl>: Invalid command 'On',
perhaps mis-spelled
or defined by a module not included in the server configuration
Taking out "[ 'AuthCookieDebug' => 7 ]," makes the error go away, but it's not a
solution.
What's worse: how do you define multiple Limit sections like the following?
<Limit GET POST>
require group group1 group2
</Limit>
<Limit PUT>
require group group1
</Limit>
I'm using A1.3.17 mp 1.2.5.
I am at a loss. 8={
Jie