Forum Moderators: phranque
(also just curious, why is it that each time i generate a passwd it always looks different even when the same string's used?)
thanks a lot in advance~
(1) "AuthType Basic" is the very first line
(2) "AuthUserFile" and the path are on the same line
If the problem is that your login isn't recognized, then that means the server is definitely *asking* you to log in, so evidently that part of .htaccess is working. That seems to point to a problem with the .htpasswd file, or that the server can't *find* the password file. Make sure you start the pathname with a slash and list all the dirs right from the top, e.g., /home/username/public_html/restrictedfolder/.htpasswd.
BTW, for testing purposes, if you don't yet have any sensitive info in the protected directory, you don't have to encrypt the password. You can put the password in .htpasswd as plain text.
but ALL THE TUTORIALS have been saying, use the path you see when you type "pwd", when I do type that, I see something like:
/nfs/home/y/.....
so I've been using that as my path this entire time. I ended up deleting "/nfs" from the front and now it works. Any idea what nfs is or why this is happening? Thanks!
use the path you see when you type "pwd"
Well, this should perhaps read
'use the path that the web server (not you) would see if he/she/it would type a "pwd" within his own environment'.
I may be wrong in this case, but the "/nfs/" part suggests that you are working on the server side of an nfs environment (NFS = Network File System - a file ressources sharing mechanism across systems) seeing the nfs server's absolute path while your webserver runs on an nfs client side seeing just his /home file system which in the background is mapped and mounted on /nfs.
Kind regards,
R.