You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by James G Smith <JG...@JameSmith.COM> on 2000/12/31 20:58:47 UTC

Re: Help with in httpd.conf

"Scott Alexander" <sc...@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/
------------------------------------+------------------------------------------