http 设置某个目录仅本地可以访问

前提:

1.已经安装了Apache服务

2.该目录已经创建

实验操作:

1.修改配置文件

  vim /etc/httpd/conf.d/web.conf

  

 保存退出

2.systemctl   restart httpd

3.在客户端访问 server0.example.com/secret  即可

posted @ 2019-11-06 18:15  cloud-qing0212  阅读(439)  评论(0编辑  收藏  举报