Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > CGIs, .htaccess, and identification?

CGIs, .htaccess, and identification?
Thread Tools
flaneur
Guest
Status:
Reply With Quote
Apr 11, 2001, 06:29 PM
 
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... =)
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:03 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2