[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modperl
Subject: Re: Help with <Perl> in httpd.conf
From: James G Smith <JGSmith () JameSmith ! COM>
Date: 2000-12-31 19:58:47
[Download RAW message or body]
"Scott Alexander" <scott@humak.edu> wrote:
>Is the syntax still wrong or does anyone have any ideas about this?
I am thinking it is. Try the following correction.
><Perl>
>#!perl
>
>$Location {"/users/supervisor"} = {
> DAV => 'On',
> AllowOverride => 'None',
> Options => 'None',
> AuthName => '"Test"',
> AuthType => 'Basic',
> Auth_MySQL_Password_Table => 'users',
> Auth_MySQL_Username_Field => 'user',
> Auth_MySQL_Password_Field => 'passwd',
> Auth_MySQL_Encryption_Types => 'Plaintext',
> Auth_MYSQL => 'on',
Limit => {
'GET POST' => {
require => 'user supervisor',
},
},
>} ;
>__END__
></Perl>
> Limit => {
> METHODS => `GET POST`,
> require => `user supervisor`,
> },
Also, you have backticks (`) in the above instead of single-
quotes ('). This will result in Perl trying to execute what is
enclosed. Probably not what you wanted.
------------------------------------+-----------------------------------------
James Smith - jgsmith@jamesmith.com | http://www.jamesmith.com/
jsmith@sourcegarden.org | http://sourcegarden.org/
jgsmith@tamu.edu | http://cis.tamu.edu/systems/opensystems/
------------------------------------+------------------------------------------
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic