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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux