auth_request找不到,它是否在openresty1.11.2.1.tar中?

414 views
Skip to first unread message

maxwa...@gmail.com

unread,
Dec 27, 2016, 7:34:30 AM12/27/16
to openresty
春哥好:
           今天在看您写的nginx教程时,然后看到Nginx变量漫谈(五)时,有个ngx_auth_request模块,使用了其中的auth_request命令,当我重启的时候,linux终端显示为 nginx: [emerg] unknown directive "auth_request" in /home/****/openresty_hdcourse/openresty/nginx/conf/nginx.conf:53 找不到这个。我安装是的openresty/1.11.2.1版本,所有的模块我都安装了,感觉应该是openresty1.11.2.1没有加入这个模块?还是需要自己手动安装吗?谢谢。也感谢您提供了如此优秀的技术方案。

kuke

unread,
Dec 28, 2016, 12:57:31 AM12/28/16
to openresty
http://nginx.org/en/docs/http/ngx_http_auth_request_module.html  需要这个模块

/path/sbin/nginx -V   应该可以看到 没有这个模块

在 2016年12月27日星期二 UTC+8下午3:34:30,maxwa...@gmail.com写道:

YuanSheng Wang

unread,
Dec 28, 2016, 2:22:49 AM12/28/16
to open...@googlegroups.com
2016-12-27 15:34 GMT+08:00 <maxwa...@gmail.com>:
春哥好:
           今天在看您写的nginx教程时,然后看到Nginx变量漫谈(五)时,有个ngx_auth_request模块,使用了其中的auth_request命令,当我重启的时候,linux终端显示为 nginx: [emerg] unknown directive "auth_request" in /home/****/openresty_hdcourse/openresty/nginx/conf/nginx.conf:53

该模块默认是不安装的,需要在 configure 的时候指定开启。

$ ./configure --help | grep auth
  --with-http_auth_request_module    enable ngx_http_auth_request_module
  --without-http_auth_basic_module   disable ngx_http_auth_basic_module

Nginx 官方说明:

 
找不到这个。我安装是的openresty/1.11.2.1版本,所有的模块我都安装了,感觉应该是openresty1.11.2.1没有加入这个模块?还是需要自己手动安装吗?谢谢。也感谢您提供了如此优秀的技术方案。

--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty+subscribe@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+unsubscribe@googlegroups.com
归档: http://groups.google.com/group/openresty
官网: http://openresty.org/
仓库: https://github.com/agentzh/ngx_openresty
教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html



--

YuanSheng Wang
---------------------------------------
OpenResty lover ^_^

maxwa...@gmail.com

unread,
Dec 28, 2016, 7:08:02 AM12/28/16
to openresty
This module is not built by default, it should be enabled with the --with-http_auth_request_moduleconfiguration parameter.

明白了,谢谢回答。

在 2016年12月28日星期三 UTC+8上午10:22:49,YuanSheng写道:


2016-12-27 15:34 GMT+08:00 <maxwa...@gmail.com>:
春哥好:
           今天在看您写的nginx教程时,然后看到Nginx变量漫谈(五)时,有个ngx_auth_request模块,使用了其中的auth_request命令,当我重启的时候,linux终端显示为 nginx: [emerg] unknown directive "auth_request" in /home/****/openresty_hdcourse/openresty/nginx/conf/nginx.conf:53

该模块默认是不安装的,需要在 configure 的时候指定开启。

$ ./configure --help | grep auth
  --with-http_auth_request_module    enable ngx_http_auth_request_module
  --without-http_auth_basic_module   disable ngx_http_auth_basic_module

Nginx 官方说明:

 
找不到这个。我安装是的openresty/1.11.2.1版本,所有的模块我都安装了,感觉应该是openresty1.11.2.1没有加入这个模块?还是需要自己手动安装吗?谢谢。也感谢您提供了如此优秀的技术方案。

--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty...@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages