Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unknown directive "subs_filter" #33

Open
fecqs opened this issue Aug 12, 2019 · 7 comments
Open

unknown directive "subs_filter" #33

fecqs opened this issue Aug 12, 2019 · 7 comments

Comments

@fecqs
Copy link

fecqs commented Aug 12, 2019

编译 之后报这个错 配置文件是这样写的。这个是什么问题?
image

@cuber
Copy link
Collaborator

cuber commented Aug 13, 2019

@JSlife23 静态编译还是用的动态编译?方便贴下 ./configure 参数么

@fecqs
Copy link
Author

fecqs commented Aug 13, 2019

configure arguments: --prefix=/usr/local/tengine --user=nginx --group=nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-http_sub_module --add-module=/usr/local/tengine/ngx_http_substitutions_filter_module

2019-08-13_211025

@cuber

@cuber
Copy link
Collaborator

cuber commented Aug 14, 2019

@JSlife23 我用同样的参数,最新版本的 tengine 测试了下,没有能够复现你的问题,你再确认下使用的 bin 是否正确吧

@fecqs
Copy link
Author

fecqs commented Aug 14, 2019

@cuber 你说的bin是指?我的是centos7.2 。 可能是我描述的有点问题吧, 我是安装模块之前 nginx -t 检查语法的时候报的错。

@cuber
Copy link
Collaborator

cuber commented Aug 14, 2019

@JSlife23 你 nginx -t 使用的可执行文件,和最后 make 出来的 objs 目录里的 nginx 文件你核对下是否一致

@fecqs
Copy link
Author

fecqs commented Aug 14, 2019

我把objs 下面的nginx 替换到了sbin/ 下面的nginx 了 执行nginx -t 还是报nginx: [emerg] unknown directive "subs_filter"的错误。

@iyery
Copy link

iyery commented Sep 3, 2019

你重新编译后要,不单单要替换可执行文件,还要重启nginx进程,不要用reload,停掉再起

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants