【发布时间】:2016-03-17 15:13:51
【问题描述】:
下面的代码似乎在 Firefox、IE、Safari 中显示文本“HELLO WORLD”很好,但在 Chrome 中却没有。
<Files wp-login.php>
AuthType basic
AuthName "HELLO WORLD"
AuthBasicProvider file
AuthUserFile /home/.htpasswd
Require valid-user
</Files>
ErrorDocument 401 "Authentication required"
如何确保 AuthName 在所有浏览器中都有效?
【问题讨论】:
标签: apache .htaccess google-chrome .htpasswd