apache httpd http basic auth

apache httpd http basic auth

网站根目录下新建.htaccess:

创建验证密码.htpasswd: