You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Fernando <fs...@saninternet.com> on 2006/01/26 14:22:56 UTC

[users@httpd] apache .htaccess in NFS

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?



Thanks for the help!!

Fernando S.


---------------------------------------------------------------------
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


Re: [users@httpd] apache .htaccess in NFS

Posted by "Neil A. Hillard" <hi...@whl.co.uk>.
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