Jeff,

The directory you want unprotected should be as follows:

<Location /unprotected>
PerlAuthHandler Apache::OK
PerlAuthzHandler        Apache::OK
</Location>

Regards,
Christian

> -----Original Message-----
> From: Jeff Sheffield [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 18, 2000 4:54 PM
> To: [EMAIL PROTECTED]
> Subject: Unset PerlAuthenHandler (I wish)
> 
> 
> Ok, essentially I want all but one directory on the
> server to be password protected.
> I want 1 directory to have the "I forgot my password"
> functionality.
> 
> I am using Mason.....
> and setting SetHandler default-handler has undesired results.
> i.e. mason files do not get parsed.
> Essentially I want to do this.
> Unset PerlAuthenHandler
> 
> here is a portion of my conf file.
> --------------------------------------------------
> AddType text/html .mhtm
> <FilesMatch     ".*\.mhtm$">
>               SetHandler      perl-script
>               PerlHandler     HTML::Mason
> </FilesMatch> 
> 
> <Location /websites/foo.net/htdocs/>
> 
> AuthName "foo"
> AuthType Basic
> 
> PerlAuthenHandler Apache::AuthDBI::authen
> PerlAuthenHandler Apache::AuthDBI::authz
> 
> PerlSetVar Auth_DBI_data_source
> dbi:mysql:database=foo_external_site;host=localhost;port=3306
> PerlSetVar Auth_DBI_username      jsheffie
> PerlSetVar Auth_DBI_password      fooo
> # DBI->connect($data_source, $username, $password)
> 
> PerlSetVar Auth_DBI_pwd_table     users
> PerlSetVar Auth_DBI_uid_field     user_id
> PerlSetVar Auth_DBI_pwd_field     password
> PerlSetVar Auth_DBI_grp_field     groups
> #SELECT pwd_field FROM pwd_table WHERE uid_field=$user
> 
> require valid-user
> 
> ErrorDocument 401
> /websites/foo.net/htdocs/passwd_forgoten/
> </Location>
> 
> <Location /websites/foo.net/htdocs/passwd_forgoten/>
>    SetHandler default-handler
> </Location>
> -----------------------------------------
> Any ideas..??
> 
> Thanks, 
> Jeff
> 
> -------------------------------------------
> | 7.6.2.1.  Configuring /etc/diphosts     |
> |                                         |
> | (taken from the Linux Networking-HOWTO) |
> -------------------------------------------
> | Jeff Sheffield                          |
> | [EMAIL PROTECTED]                          |
> | AIM=JeffShef                            |
> -------------------------------------------
> 

Reply via email to