Apache2.2 👇
<Location />
Order allow,deny
Allow from all
Deny from X.X.X.X
</Location>
Apache2.4 👇
<Location />
<RequireAll>
Require all granted
Require not ip X.X.X.X
</RequireAll>
</Location>
ps:Apache2.4使用Require指令的时候,外面必须要加上<RequireAll></RequireAll>
否则报错