Hey everyone!
Well, I've got apache up and working to mostly to my liking, and have protected my whole site with a .htaccess file in my /Library/WebServer/Documents/ directory. I've noticed two weird things, however, and I'm hoping someone can shed some light on why Apache in OS X 10.0 is working a little differently for me than it did in the Public Beta:
1) For some reason, in my access log, every single file or image I access when authenticated gets listed *twice*. On the first line, no remote user is listed ("-"), and a 401 code is shown, then on the second line, my correct authentication name is shown along with a 200-code. From the browser, everything looks normal, but my access logs *didn't* show this in the public beta, and I'm worried that it's slowing things down...any insights into this?
2) I've written some CGIs that do different things depending on who's logged in (via my .htaccess and password file). I've covered all the basics - my ScriptAlias is set up, permissions are fine, etc. The only problem is that the access log shows that the username is not sent along with a request for the CGI script. This in turn means my $ENV{REMOTE_USER} variable in the CGI is blank, and the script doesn't work. I think what's happening is since the CGI directory isn't really "in" the same directory as my .htaccess file, it's exempt from it...is that what's happening? If so, how do I fix it so that CGIs are accessed with a proper REMOTE_USER specified?
Thanks so much for any help you can provide... =)