如何取消分辨率 {IP}?
我被委托加入 Trac 到现有的实例 Apache. 试图配置身份验证,我发现我们允许人们来自我们的内部IP地址,以绕过身份验证。 我需要在位置取消它 / trac. 鉴于下面的配置片段,我该怎么办?
有没有办法禁用“允许从所有”参数中 / trac?
<directory public_html="" tools.example.com="" var="" www="">
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 "="" login"="" trac="">
AuthType Basic
AuthName "Please log in to trac"
AuthUserFile /var/www/trac.htpasswd
Require valid-user
</location>
有没有办法禁用“允许从所有”参数中 / trac?
没有找到相关结果
已邀请:
1 个回复
冰洋
赞同来自:
在你的 / trac, 需要两个条件。
关联:
http://httpd.apache.org/docs/2 ... tisfy