【发布时间】:2014-01-07 00:37:22
【问题描述】:
目标 - 限制对服务器的访问但允许访问
http://devserver/api/api-test
以下内容可以很好地限制用户,但我似乎无法向任何想要在我的 .htaccess 文件中访问 /api/api-test url 的用户授予访问权限。
AuthType Basic
AuthName "Restricted Area"
AuthUserFile /var/www/.htpasswd
Require user pw
// the below does not work I have tried my variations.
<Files "api-test.php">
Order Deny,Allow
Allow from All
</Files>
【问题讨论】:
标签: .htaccess drupal-7 apache2