I got "500 internal server error" after configuring files .htaccess and .htpasswd in my directory on a site from which i have some space to put my stuff.
The site displays the following:
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, blahblah(my email address on that site) and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log."
And followed is the site's instruction on how to PASSWORD PROTECT directories:
yes you can. you can create usernames and passwrods for directories using the 'htpasswd' command.
step 1: create a file called '.htaccess' in the directory you want to protect
AuthNAME "my protected files"
<limit GET POST PUT>
allow from all
Step2: run the 'htpasswd' command, for the first time:
htpasswd -c .htpasswd myuser1
you will be prompted to enter a password for the new user. After theis first user is created, you can then add additional users with:
htpasswd .htpasswd myuser2
next, reference your site with a ~ style URL, for instance: http://blahblah.org/~username
and NOT http://username.blahblah.org
OK back to the problem i have.
I strictly followed these steps but still get the "500 internal server" error. I guess there must be something wrong with my configuration about .htaccess and .htpasswd...... if i removed these two files, everything's fine.
I don't think this is a very difficult problem to solve, but i just couldn't figure it out. Can someone out there give me a hand?