| 1. |
Solve : Apache Server passwording? |
|
Answer» I wan't to put a password on to access my site. are files that have no file extension. I'm lost how can they have no filename? I can't have a file with just an extension, and no name could I? :-? I have my files although they have a filename so thats probably why they are not working. My "password.htaccess" is at C:/Program Files/Apache Group/Apache2/htdocs/password.htaccess, and consists of Code: [Select]AuthName "GNOMENET Server" AuthType Basic AuthUserFile "C:/Program Files/Apache Group/Apache2/bin/greengnome.htpasswd" Require valid-user My "greengnome.htpasswd" is located at "C:/Program Files/Apache Group/Apache2/bin/greengnome.htpasswd" and has Code: [Select]greengnome:$apr1$um1.....$DNK4zDGnCh2KmtHhA09IO1 Even though I'm using Windows I should still have forward slashes, correct? What am I doing wrong? :-? How do I eliminate the filenames?I can't see anything wrong with what you have. However, it may be that you haven't configured Apache to look for the htaccess file. I can't have a file with just an extension, and no name could I? The idea of name+extension isn't quite accurate anyhoo. Really, a filename includes the file extension. Remember, too, that all this COMES from Unix land, where extensions aren't so heavily relied upon. In Unix, a filename that begins with a dot means that the file is (usually) hidden. Windows doesn't like filenames that begin with a dot -although it is POSSIBLE to do. I save all confusion by CALLING my files: htaccess.conf Here's the meat. You may have neglected to put the name you have chosen for your access file into the httpd.conf (the Apache config file) AccessFileName password.htaccess Probably best to change this name to something else anyway. I see that you understood .htaccess to be the extension (for a file with no name !). It is just a filename. For understandability, perhaps use something like mine.. AccessFileName htaccess.conf Ugh, it's still not working. :-? |
|