您的位置: 首页 > 文章 > nginx 搭建静态网站 nginx 搭建静态网站 分类: 文章 • 2024-09-26 09:10:17 将网站资源放在已安装好的nginx html子目录下,打开conf 目录下的nginx.conf 配置文件 新增一条location /网站目录 { root /html/网站目录; index index.html; }