创建默认虚拟主机配置文件
作用:禁止任何人通过ip或未允许的域名访问web服务。
如:vim vhosts/default.conf
server
{
listen 80 default;
server_name localhost;
index index.html index.htm index.php;
root /tmp/111;
deny all;
}

 

相关文章:

  • 2022-12-23
  • 2021-11-10
  • 2021-11-17
  • 2022-01-22
  • 2021-04-20
  • 2021-09-02
猜你喜欢
  • 2021-08-02
  • 2022-12-23
  • 2021-12-26
  • 2021-04-03
  • 2021-08-16
  • 2022-12-23
  • 2021-12-03
相关资源
相似解决方案