例如Linux服务器IP为 192.168.1.1 , 现在要禁止通过 192.168.1.1访问服务器上的网站。
首先要查找httpd.conf 然后编辑此文件,添加:
NameVirtualHost 192.168.1.1
<VirtualHost 192.168.1.1:80>
<Location />
Order Allow,Deny
Deny from all
</Location>
</VirtualHost>
Copyright © 2013-2021 8a.hk All Rights Reserved. 八艾云 版权所有 中山市八艾云计算有限公司 粤ICP备14095776号