我试图确保我的phpmemcachedadmin安装。 (它没有任何安全性,甚至没有login系统)
我已经添加到.htaccess文件中:
AuthName "For admins only" AuthType Basic AuthUserFile /var/www/phpmemcachedadmin/.htpasswd AuthGroupFile /dev/null require user myuser
但它不起作用。 我在这里错过了什么? 这些文件由www-data拥有,所以它不能成为许可的事情。
你有在这个目录的虚拟主机configuration的AllowOverride all ? AFAIK这是必需的。 我也会更改用户require valid-user