apache2 让某些网段不需要密码认证, 其他网段需要密码认证的 .htaccess .htaccess AuthName "please login" AuthType Basic AuthBasicAuthoritative Off AuthUserFile /dev/null Auth_Mysql on Auth_MySQL_CharacterSet utf8 AuthMySQL_CharacterSet utf8 Auth_mysql_db anheng auth_mysql_password_table mysql_auth auth_mysql_group_table mysql_auth auth_mysql_username_field username auth_mysql_password_field passwd auth_mysql_group_field groups auth_mysql_encryption_types PHP_MD5 require valid-user order allow,deny allow from 192.168 allow from 10. satisfy any