Apache 访问控制
Note: the italic should change to ur own dir and name
In the httpd.conf add the following lines
!!!delete the "
"<"Directory
/var/www/the/dir/tocontrol/">"
Options MultiViews
AllowOverride AuthConfig
Order allow,deny
Allow from all
"<"/Dircetory">"
vi /var/www/the/dir/tocontrol/.htaccess
add
AuthType Basic
AuthName "Restricted Files"
AuthUserFile
/var/www/the/dir/tocontrol/.htpaaswd
Require user allow_user
/pathto/htpasswd -c /var/www/the/dir/tocontrol/.htpaaswd allow_user
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home