Questions tagged «mod-authz-host»

3
Apache httpd:如何从所有子网中拒绝所有,从子网中允许但从该子网中的IP拒绝?
我正在使用股票Apache httpd-2.2.3运行CentOS 5.5。 我已在/ server-status位置启用了mod_status。我想通过以下方式允许访问该位置: 全部拒绝 允许来自子网192.168.16.0/24 拒绝IP地址为192.168.16.100的192.168.16.100。 1&2很容易。但是,由于我“允许来自192.168.16.0/24”,是否可以拒绝来自192.168.16.100? 我试图为192.168.16.100添加一个Deny语句,但是它不起作用。这是相关的配置: <Location /server-status> SetHandler server-status Order Allow,Deny Deny from all Deny from 192.168.16.100 # This does not deny access from 192.168.16.100 Allow from 192.168.16.0/24 </Location> 要么: <Location /server-status> SetHandler server-status Order Allow,Deny Deny from all Deny from 192.168.16.100 # This does …

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.