Re: Protecting a Directory

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

 



ok fixed the path. got a 401 error. made a new htpasswd file and worked. apparently the htpasswd tool was generating bogus encrypted passwd, server didnt understand. tried to use the apache htpasswd tool in bin folder but wont launch for some reason.

----- Original Message ----- From: "Drew Tomlinson" <drew@xxxxxxxxxxxxxxxxxx>
To: <users@xxxxxxxxxxxxxxxx>
Sent: Friday, October 03, 2008 1:59 PM
Subject: Re:  Protecting a Directory


jg6789@xxxxxxx wrote:
according to php document root it is the path. htpasswd is not under root. it is under a folder in the alias folder. the question is when the htaccess AuthUserFile ooks for the htpasswd file is it looking in at the "alais" or the D:/ directory?

It is looking for it here:

xampp/htdocs/xxxx/.htpasswd

Since this is a relative path, it's probably looking for this directory relative to ServerRoot. To avoid conflict, I suggest specifying a complete path.

HTH,

Drew


----- Original Message ----- From: "Eric Covener" <covener@xxxxxxxxx>
To: <users@xxxxxxxxxxxxxxxx>
Sent: Friday, October 03, 2008 1:47 PM
Subject: Re:  Protecting a Directory


AuthUserFile xampp/htdocs/xxxx/.htpasswd

Is that really a relative path?  Also, your passwords should not be
under your DocumentRoot or any Aliases.
--
Eric Covener
covener@xxxxxxxxx



--
Be a Great Magician!
Visit The Alchemist's Warehouse

http://www.alchemistswarehouse.com


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



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