注意问题: 注意红色字体部分AuthUserFile /dev/null 如果没有这行,apache的error_log中会出现这样的错误: [error] Internal error: pcfg_openfile() called with NULL filename [error] [client ip] (9)Bad file descriptor: Could not open password file: (null) 如果没有AuthBasicAuthoritative off 会出现错误: [error] [client ip] user yourusername not found: