httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neil A. Hillard" <>
Subject Re: [users@httpd] apache .htaccess in NFS
Date Thu, 26 Jan 2006 13:51:39 GMT

Fernando wrote:
> Hi!
> I'm facing a problem with apache 1.3.34 in a NFS DocumentRoot with 
> .htaccess.
> I create the .htacess file nomrally, htpasswd -c .htacess user
> Then I configure the httpd.conf also correctly, but when I try to test 
> the protected folder, I get a ERROR 500.
> You may think that I mispeled the config file, but not, when I remove 
> the .htaccess file Apache prompts the Auth window normally.
> The interesting point is that I created another .htaccess file in the 
> normal local filesystem and changed the httpd.conf file to gets 
> information from that file, and it worked!
> So I assumed that my problem is with the NFS and .htaccess file... is 
> there a directive or  option to fix it?

Do not confuse an htpasswd file with a .htaccess file - they aren't the 
same.  You need to use htpasswd to create the password file and then 
refer to it from within the httpd.conf or a .htaccess file.

Also, do not store the htpasswd file within the DocumentRoot, otherwise 
someone may be able to download it!

See and the 
AuthUserFile directive.



Neil Hillard          
Westland Helicopters Ltd.

Disclaimer: This message does not necessarily reflect the
             views of Westland Helicopters Ltd.

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

View raw message