apache httpd http basic auth

apache httpd http basic auth
网站根目录下新建.htaccess: AuthName "Welcom to xx.xx.com" AuthType Basic AuthUserFile "/home/wwwroot/xxx.xxx.com/.htpasswd" require valid-user 创建验证密码.htpasswd: htpasswd -c $filename $username  
Copyright © C/C++程序员之家 保留所有权利.   Theme  Ality 浙ICP备15011757号-3

用户登录