DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Linux Servers and Apache (http://www.daniweb.com/forums/forum33.html)
-   -   HTTP Auth (.htpasswd) Not Working In CGI-BIN (http://www.daniweb.com/forums/thread187820.html)

samarudge Apr 21st, 2009 12:36 pm
HTTP Auth (.htpasswd) Not Working In CGI-BIN
 
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?


All times are GMT -4. The time now is 5:26 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC