ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> modperl
modperl
Re: Help with in httpd.conf
by James G Smith other posts by this author
Dec 31 2000 3:58PM messages near this date
Help with in httpd.conf | Re: Document Contains no data
"Scott Alexander" <scott@[...].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@[...].com | http://www.jamesmith.com/
            jsmith@[...].org | http://sourcegarden.org/
              jgsmith@[...].edu      | http://cis.tamu.edu/systems/opensystems/
------------------------------------+------------------------------------------
Thread:
Scott Alexander
James G Smith

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved