-
Notifications
You must be signed in to change notification settings - Fork 777
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 "goole" in /etc/nginx/conf/nginx.conf:44 #152
Comments
是不是要写成 google |
|
现在nginx都1.13了,1.7那个版本好多现在的模块都不兼容 |
使用nginx1.7.8版本编译的时候openssl又报错,麻烦大神赶紧更新一下 |
nginx 版本导致的无法安装或者找不到google插件暂时无解 (能将就用就将就用着嘛) |
改成用dev分支吧。不要用master即可。 |
用README里的那个版本的openssl库就可以了 |
编译时使用 ./configure \
<your configuration> \
--add-dynamic-module=</path/to/>ngx_http_google_filter_module \
--add-module=</path/to/>ngx_http_substitutions_filter_module 配置文件中添加
我的环境
|
整了一天,1.7.8确实能识别 |
经测试,两者均可以实现,但是第一种方法相对方便,且能与较高版本的nginx匹配,支持多种模块。 |
我按照教程上来,但一直报这个错,我这台服务器被我重装后也是如此。查看配置中有这个选项,恳请大神帮我看看。
nginx: [emerg] unknown directive "goole" in /etc/nginx/conf/nginx.conf:44 nginx: configuration file /etc/nginx/conf/nginx.conf test failed
nginx -V nginx version: nginx/1.14.2 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) built with OpenSSL 1.0.1j 15 Oct 2014 TLS SNI support enabled configure arguments: --prefix=/etc/nginx --with-pcre=../pcre-8.38 --with-openssl=../openssl-1.0.1j --with-zlib=../zlib-1.2.11 --with-http_ssl_module --add-module=../ngx_http_google_filter_module --add-module=../ngx_http_substitutions_filter_module
location / { goole on; }
The text was updated successfully, but these errors were encountered: