1.cd /.../.../nginx/conf/(例如/usr/local/nginx/conf/)文件夹,新建*.conf(如net12.conf)
2.编辑nginx.conf配置文件(vi nginx.conf)。
在http{}里最后一行加上刚才创建的目录地址。(注意是在http{}里)
作者:꧁执笔小白꧂
1.cd /.../.../nginx/conf/(例如/usr/local/nginx/conf/)文件夹,新建*.conf(如net12.conf)
2.编辑nginx.conf配置文件(vi nginx.conf)。
在http{}里最后一行加上刚才创建的目录地址。(注意是在http{}里)
作者:꧁执笔小白꧂