Nginx启动报错:"location" directive is not allowed here in D: ginx-1.16.1/conf/:63

时间:2025-03-18 21:02:13

Nginx问题

  • 问题描述

nginx无法启动出现报错 "location" directive is not allowed here in D:\nginx-1.16.1/conf/:63


问题解决

  • 解决方式

查看自己的 63行的location是不是写错了


问题

形如"xxxx" directive is not allowed here in D:\nginx-1.16.1/conf/:xx都是说明在的xx行的xxxx处有错误。检查即可