多个域名配置: 依赖于 include 这个功能会加在 这2个文件夹下的所有配置文件。 所以我们可以配置多个 conf 放置于这些文件夹中。这样就是先了多个域名配置 conf 内容大致如下 server{ listen 80; server_name www.baidu.com; location /{ root /home/github/diudiu ; } } 相关文章: 2022-12-23 2022-02-18 2021-12-27 2021-11-11 2021-11-08 2022-12-23 2021-11-30