Thank you Gregers, <br>This works flawlessly. It should be enough for our modest current needs. In time, we can implement something more robust. <br><br><div class="gmail_quote">On Fri, Apr 9, 2010 at 2:00 AM, Gregers Paludan Nakman <span dir="ltr"><<a href="mailto:gpnster@gmail.com">gpnster@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">This is our simple way of fixing the problem.<br>
<br>
Fix the webserve in order to look for .htaccess files in the dir where<br>
rancid is started from:<br>
<br>
vi /etc/httpd/conf/httpd.conf<br>
<br>
look for "cgi-bin" and change the AllowOverride Parameter:<br>
<br>
<Directory "/var/www/cgi-bin"><br>
# AllowOverride None<br>
AllowOverride AuthConfig<br>
Options None<br>
Order allow,deny<br>
Allow from all<br>
</Directory><br>
<br>
Save<br>
<br>
In the dir refereed to in "Directory" ( /var/www/cgi-bin ), create a file<br>
named .htaccess with the following content:<br>
<br>
vi /var/www/cgi-bin/.htaccess<br>
<br>
AuthUserFile /usr/local/rancid/.htpasswd<br>
AuthGroupFile /dev/null<br>
AuthName EnterPassword<br>
AuthType Basic<br>
<br>
require user <NAME OF THE USER YOU WANT TO Grant Access><br>
ex:<br>
require user jdoe<br>
<br>
The last thing to do is to create the password file for the user<br>
<br>
htpasswd -c /usr/local/rancid/.htpasswd jdoe<br>
New password:<br>
Re-type new password:<br>
Adding password for user jdoe<br>
<br>
Restart httpd<br>
<br>
#service httpd restart<br>
<br>
It is not the perfect way, but now the truck hole is just a gap for a small<br>
car ;-)<br>
<br>
BR<br>
Gregers<br>
-----------------<br>
<br>
</blockquote></div><br>