Name

update_auth — update the external content cache .htaccess files

Synopsis

use Wacs;
scalar update_auth(...); 
 

Parameters

parameterdescription
sourceThe comma seperated list of files to use for deriving the auth information - if not specified, defaults to the wacs.acl permanent file and the leases.acl temporary leases files.
destThe comma seperated list of directories in which to place the generated authorised IP addresses list. If not specified, it checks the configuration variable cachelist in the security section of the configuration file, and if that's empty, it finally uses the values for contenti and contentv in the fsloc section.
formatThe desired output format - a present the only acceptable value is apache2_htaccess (which is the default) but other options might be available in future.

Summary

The update_auth function reads the current values in the authorisation files and writes suitable .htaccess files into the top level of the content cache directories to allow direct HTTP access to the content cache to authorised users.

Availability

The function update_auth is only available in perl as all authorisation update functions are currently offered only in perl, and is only available in WACS 0.9.1 and higher.