[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] .htaccess with FrontPage ?!?



> I have this problem on a raq4 :
> If the site have the FP extensions enabled and I try to put a
> .htaccess file
> to password protect a directory he take the .htpasswd file
> from the site and
> no from the server.
> I want to enable password protected stats on all the sites.
> How can I force
> it to take the password file from the server ?


Your .htaccess file has to look like this:

#Access file
order allow,deny
allow from all
require group sitexx
Authname WebStats
AuthAuthoritative on
Authtype Basic

you need to include the "AuthAuthoritative on" line for .htaccess
and Frontpage to work together.

If you have webalizer, the section that creates the .htaccess
file should look like this (except remove any hard line break
appearing in $string):

# Create a .htaccess if it isn't there yet

    if (!-e '$thepath/.htaccess')
    {
       my $string = "#Access file\norder allow,deny\nallow from
all\nrequire group $name\nAuthname WebStats\nAuthAuthoritative
on\nAuthtype Basic";
       open HTACCESS, qq(>$thepath/.htaccess);
       print HTACCESS $string;
       close HTACCESS;
       chmod 0744, qq($thepath/.htaccess);
    }


--
Donna Lever
Smart Artist Web Services
http://www.smartartist.com.au/