I've been playing around with creating a private directory with Apache. The process seems easy enough, but I keep getting an Internal Server Error when I try to access the directory. Here's what I've done:
The name of the directory is, "private".
httpd.config:
AllowOverride All (temporarily)
.htaccess:
AuthUserFile c:/clients/queststudios/public_html/private/.htpasswd
AuthName Private Directory
AuthType Basic
<Limit GET>
require valid-user
</Limit>
Then I run the htpasswd program and generate a Login and Password, which seems to work properly.
As Quest Studios is setup as a virtual host, does this need to be contained within a <Directory> tag under the virtual host? I haven't read anything that would indicate that; the htaccess command is a general server directive, I believe, and not specific to any specific virtual host.
On another topic:
When you access queststudios.com, you're immediately redirected to
http://queststudios.com/quest/Sierra1.html. This redirect is contained in the virtual host tag. However, the way I set it up isn't making sense to me. I used the line:
Redirect /index.html http://queststudios.com/quest/Sierra1.htmlSeems to me I should simply be able to use:
Redirect /index.html /quest/Sierra1.htmlBut Apache won't run when I tried that. Is it that I have to spell out the complete Windows path to the redirect, like:
Redirect /index.html c:/clients/queststudios/public_html/quest/Sierra1.html(At least with Unix, I always knew how to setup full paths.)
