bsp;页面的访问,只允许用户“user1”以口令“passwd1”访问页面。
基本情况:假设www.linejet.com 站点Apache服务器中的httpd.conf文件有设置为:
DocumentRoot /home/httpd/html
AccessFileName .htaccess
AllowOverride All
实现步骤:
1.使用htpasswd建立用户文件:
$ htpasswd -c /home/httpd/secr/.htpasswd user1
页码:[1] [2] [3] [4] [5] [6] 第2页、共6页 |