《深入理解NGINX》 第4章,关于解析配置的部分。我按照书上的,写出了代码
https://github.com/samuelyao314/workspace/blob/master/nginx/modules/mytest2.
现在遇见问题,当开启配置 test_enum 和 test_access的时候, nginx 进程直接就没法启动了。错误信息如下
nginx: [emerg] invalid number of arguments in "test_enum" directive in /home/samuel/local/workspace/nginx/modules/mytest2/conf/nginx.conf:36
我是在 openresty 1.13.6.1 上编译这个模块的
./configure --prefix=/home/samuel/local/openresty --with-debug --add-module=/home/samuel/local/workspace/nginx/modules/mytest2
请问有谁知道,是什么原因造成的啊?