【发布时间】:2018-01-09 15:22:21
【问题描述】:
我正在尝试在我的 nginx 中实现“ssl_preread”。我的nginx是用“--with-stream_ssl_preread_module”这个模块编译的。
我提到了“ssl_preread on;”在 nginx.conf 的服务器指令中。但我遇到了错误。
nginx: [emerg] "ssl_preread" 指令在 /opt/nginx/conf/nginx.conf:43 中是不允许的
我正在关注下面的文档。
http://nginx.org/en/docs/stream/ngx_stream_ssl_preread_module.html
【问题讨论】:
-
我猜你尝试在
http部分而不是stream中使用它。 -
@AlexeyTen,我只在服务器标签中使用了这个。
-
你的
server块在http块内 -
@AlexeyTen,是的。它在 http 块内。
-
你能显示你的配置吗?