你如何从{IP}撤销允许?

我一直负责将Trac添加到现有的Apache实例中。 在尝试设置身份validation时,我发现我们允许来自内部IP的人绕过身份validation。 我需要在/ trac位置内撤消这个。 鉴于下面的configuration片段,我该怎么做?

<Directory /var/www/tools.example.com/public_html> Options -Indexes FollowSymLinks MultiViews AllowOverride None Order Allow,Deny AuthUserFile /var/www/users.auth AuthGroupFile /var/www/groups.auth AuthName "Please log in" AuthType Basic Require valid-user Allow from {some-ip} Satisfy Any </Directory> … # For trac WSGIScriptAlias /trac /var/www/tools.example.com/public_html/trac/cgi-bin/trac.wsgi <Location "/trac/login"> AuthType Basic AuthName "Please log in to trac" AuthUserFile /var/www/trac.htpasswd Require valid-user </Location> 

有什么方法可以在/ trac中取消“允许所有人”?

一般规则中的“满足任何”,而不是在您的/ trac中添加一个Satisfy All ,所以它需要这两个条件。

参考: http : //httpd.apache.org/docs/2.2/mod/core.html#satisfy