[ale] Adding a new document root

Jerald Sheets questy at gmail.com
Wed Aug 4 12:16:49 EDT 2010


On Wed, Aug 4, 2010 at 11:45 AM, Chris Fowler
<cfowler at outpostsentinel.com>wrote:

>
>
> Alias /li /opt/link-interface
> Alias /link-interface /opt/link-interface
> <Directory /opt/link-interface>
>    AllowOverride All
>    AddHandler cgi-script .pl
>    Options ExecCGI Includes FollowSymlinks
> *    Order Deny,Allow
>    Deny from All
> *

*      AuthUserFile /path/to/passwd/file*
*      AuthType Basic*
*      AuthName "My Super Cool Login"*
*    Require valid-user*

 That is, if memory serves.

Make sure you create your passwd file before sourcing it in your config.
 Apache won't be happy on restart if you don't.

htpasswd -c /path/to/passwd/file <username>


The "-c" creates it.  After that, you shouldn't need to use it any more.
 See the man page for more info.

Also, "AllowOverride All" will also allow override of security from an
.htpasswd file.  Be careful of that.



--j
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20100804/213b2de6/attachment.html 


More information about the Ale mailing list