Password protecting a subdomain
Posted by: Kernos
Posted on: 2005-04-17 11:08:00
How do I require a username and password for access to a subdomain? These would be the same for all users.
For my prior ISP, I user .htaccess and .htpassword files to do this:
htaccess:
AuthUserFile /home/[username]/[subdomain]/.htpasswd
AuthGroupFile /dev/null
AuthName nobod
AuthType Basic
require valid-user
htpassword:
username:password
But I get internal server errors when I do this in Dreamhost.
What should the permissions be on these files if this will work?
Thanks,
Bill