<br><br><div class="gmail_quote">On Wed, Aug 4, 2010 at 11:45 AM, Chris Fowler <span dir="ltr"><<a href="mailto:cfowler@outpostsentinel.com">cfowler@outpostsentinel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
<br>
Alias /li /opt/link-interface<br>
Alias /link-interface /opt/link-interface<br>
<Directory /opt/link-interface><br>
AllowOverride All<br>
AddHandler cgi-script .pl<br>
Options ExecCGI Includes FollowSymlinks<br><b>
Order Deny,Allow<br>
Deny from All<br></b>
</blockquote><div><b> AuthUserFile /path/to/passwd/file</b></div><div><b> AuthType Basic</b></div><div><b> AuthName "My Super Cool Login"</b></div><div><b> Require valid-user</b></div><div><br>
</div><div> That is, if memory serves. </div><div><br></div><div>Make sure you create your passwd file before sourcing it in your config. Apache won't be happy on restart if you don't.</div><div><br></div><div>htpasswd -c /path/to/passwd/file <username></div>
<div><br></div><div><br></div><div>The "-c" creates it. After that, you shouldn't need to use it any more. See the man page for more info.</div><div><br></div><div>Also, "AllowOverride All" will also allow override of security from an .htpasswd file. Be careful of that.</div>
<div><br></div><div><br></div><div><br></div><div>--j</div></div>