美文网首页
CentOS 7.3 & Apache 2.4 禁止使用

CentOS 7.3 & Apache 2.4 禁止使用

作者: 李颖轩_LiYingxuan | 来源:发表于2018-01-27 16:12 被阅读109次

配置虚拟主机

vim /etc/httpd/conf.d/httpd-vhosts.conf

在最上方插入:

<Virtualhost ***.***.***.***:80>
ServerName ***.***.***.***
    <Directory />
        Order Allow,Deny
        Deny from all
    </Directory>
</VirtualHost>

重启即可:

# systemctl restart httpd.service

相关文章

网友评论

      本文标题:CentOS 7.3 & Apache 2.4 禁止使用

      本文链接:https://www.haomeiwen.com/subject/xkgnaxtx.html