I have LAMP on my pogoplug, and tried getting .htaccess files to work in order to restrict access to certain directories. I have successfully gotten to the part where I have a .htaccess file and it prompts for username and password. However, when I click submit, I receive the following error:
- Code: Select all
Server error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster.
Error 500
http://www.mysite.com
Fri Jan 2 18:11:16 1970
Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/1.0.0a DAV/2
Does anyone have any experience with this? Thanks for any help!
-Peter
Edit: Here's my .htaccess file, in location /srv/http/media (media is the folder I want to restrict access to)
- Code: Select all
AuthType Basic
AuthName "You need a password to view these files"
AuthUserFile "/home/peter/htpasswd/.htpasswd"
Require valid-user
And here is my .htpasswd file (with the hex obviously changed), in location /home/peter/htpasswd
- Code: Select all
peter:BA2sn8CUhhk4U
