Re: .htaccess
Chris wrote:
> My host tells me .htaccess is enabled on the server
>
> I created a folder in my webspace called /secure and uploaded a file called
>
> .htaccess and .htpasswd. contents below. but it does not work.
>
> Any idea what is wrong?
>
>
>
> htaccess
> /home/website1/secure/.htpasswd AuthGroupFile /dev/null AuthName "Security
> Area" AuthType Basic <Limit GET POST> require valid-user </Limit>
>
> htpasswd
> test:test
I don't know the answer to your problem, but I recently read that the
use of .htaccess is not the preferred method of doing security on a
directory. The recommendation was to define the access in the main
configuration file for Apache. By looking for .htaccess in every
directory, this slows down the performance of Apache.
|