阿里ecs centos7 apach禁止通过ip访问网站

在vhost.conf下配置

<VirtualHost *:80>
ServerName 192.168.119.32
DocumentRoot /
<Directory />
Order deny,allow
Deny from all
</Directory>
</VirtualHost>

然后重启 apache

2019-02-18 17:29:53 190人阅读 评论( 0 )