HTTP Auth (.htpasswd) Not Working In CGI-BIN

Reply

Join Date: May 2008
Posts: 225
Reputation: samarudge is an unknown quantity at this point 
Solved Threads: 18
samarudge samarudge is offline Offline
Posting Whiz in Training

HTTP Auth (.htpasswd) Not Working In CGI-BIN

 
0
  #1
Apr 21st, 2009
Hi,
I am trying to HTTP Auth protect a directory in my cgi-bin directory. I have a .htaccess file:
AuthUserFile /var/www/cgi-bin/secure/.htpasswd
AuthGroupFile /dev/null
AuthName "uTutorial Console"
AuthType Basic

<Limit GET POST>
require user valid-user
</Limit>
When I put this .htaccess file in an ordinary directory e.g. /var/www/html/site/secure/.htaccess it works fine and asks for the username and password however when I put it in my secure CGI directory (/var/www/cgi-bin/secure/) it doesn't ask for user/pass just shows the script. Is this a common problem or is it something to do with DIR permisions?
My Blog, Life and everything that matters to me - SamRudge.co.uk
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Linux Servers and Apache Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC