httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owen Boyle <>
Subject Re: .htaccess files not read
Date Wed, 24 Apr 2002 15:56:12 GMT
Owen Boyle wrote:
> John WHALE wrote:
> >
> > Hi,
> >
> > I am trying to get apache to "not allow any person" access to a
> > directory unless they exist in the password list. Apache running on
> > netwar. Does anyone have a sample of the .htaccess file and the conf
> > file entries i should use. the directory on the netware server is
> > "Data1:/FPS". Also, how do I have a file named .htaccess on a netware
> > server. doesnt like the "dot" in front of  the file name
> You don't NEED to use .htaccess to empower password protection. You can
> put the directives in the httpd.conf in a <Directory> container.. Either
> way, you need mod_auth directives like:
>   # Restricted area for secret stuff
>   <Directory /path/to/dir>
>     AuthType      Basic
>     AuthName      "Restricted Areay"
>     AuthUserFile  /path/to/password/file
>     require       valid-user
>   </Directory>
> If you want to change the name of ".htaccess" - use the AccessFileName
> directive to define it.
> Check the docs for all of this to understand it more...

PS if you do use .htaccess, you need to allow it to override httpd.conf
with a AllowOverride AuthConfig at least. - check the docs...

 Owen Boyle.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message