apache2 设置目录的访问权限
apache2 下对/usr/local/share/lxr/目录设置认证访问控制,具体如下
Alias /lxr /usr/local/share/lxr/<Directory /usr/local/share/lxr/>AllowOverride AllOptions AllAuthType BasicAuthName "By Invitation Only"AuthUserFile /etc/apache2/passwd/passwords #创建密码文件AuthGroupFile /etc/apache2/passwd/groupsRequire user baiduyi #可访问的用户</Directory>