simplyclesha Posted August 3, 2005 Share Posted August 3, 2005 Hello. I'm trying to password protect my admin and created a .htaccess file. When I try to test the file I'm getting a 500 internal server error. Here's the file I created and the server is Apache. AuthUserFile /full/path/to/.htpasswd AuthName "Administration Log In" AuthType Basic require user janedoe janedoe:password I saved the file as .htaccess and uploaded to the server as ASCII. Thanks! Clesha Link to comment Share on other sites More sharing options...
AlanR Posted August 3, 2005 Share Posted August 3, 2005 LOL (had to, sorry) It takes two files, the .htpasswd file is missing, look at the first line. If you can do this via your server control panel it's much better because it will handle it and put the .htpasswd file out of user accessible web space. Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
simplyclesha Posted August 4, 2005 Author Share Posted August 4, 2005 LOL (had to, sorry) It takes two files, the .htpasswd file is missing, look at the first line. If you can do this via your server control panel it's much better because it will handle it and put the .htpasswd file out of user accessible web space. <{POST_SNAPBACK}> It's ok to laugh AlanR. I thought I was missing something, but since this was my first time creating this file I didn't think to create a second one. I also didn't read anything about creating 2 files, only the one. What info goes into the .htpasswd file? Thanks! Clesha Link to comment Share on other sites More sharing options...
AlanR Posted August 4, 2005 Share Posted August 4, 2005 Mr. Google is your friend. http://www.htmlite.com/HTA006.php The password needs to be encrypted. You can generate one there. Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
simplyclesha Posted August 4, 2005 Author Share Posted August 4, 2005 Actually, I found 2 websites to write the file with Mr. Google, but didn't realize that it needed to be in 2 files. It only speaks about the .htaccess file without going into what should be in the .htpasswrd file. I was able to encrypt the password, I just need to add the .htpasswd file. Thanks for the help and the site. Thanks! Clesha Link to comment Share on other sites More sharing options...
simplyclesha Posted August 4, 2005 Author Share Posted August 4, 2005 I got it to work. Thanks again for the help. Thanks! Clesha Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.