httpd-users mailing list archives

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

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 http://httpd.apache.org/docs/2.0/mod/mod_auth.html and the 
AuthUserFile directive.

HTH,


				Neil.

-- 
Neil Hillard                    hillardn@whl.co.uk
Westland Helicopters Ltd.       http://www.whl.co.uk/

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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message