Unknown directive "proxy_ssl"

Hi,

I’m trying to configure Nginx 1.9.7 as a proxy server. This proxy server
won’t serve as SSL termination for HTTPS requests, for which the
proxy_ssl directive sounds perfect.

http://nginx.org/en/docs/stream/ngx_stream_proxy_module.html?&_ga=1.265652687.1742266542.1457571695#proxy_ssl

However, I’m getting the following error:

nginx: [emerg] unknown directive “proxy_ssl” in
/home/devel/nginx.conf:14

I’m under the impression that this module is included in the core, but I
might be wrong. How should go about compiling with the corresponding
module included?

These are my current configure arguments:

configure arguments: --prefix=/usr/local/openresty/nginx
–with-cc-opt=-O2 --add-module=…/ngx_devel_kit-0.2.19
–add-module=…/echo-nginx-module-0.58
–add-module=…/xss-nginx-module-0.05 --add-module=…/ngx_coolkit-0.2rc3
–add-module=…/set-misc-nginx-module-0.30
–add-module=…/form-input-nginx-module-0.11
–add-module=…/encrypted-session-nginx-module-0.04
–add-module=…/srcache-nginx-module-0.30 --add-module=…/ngx_lua-0.10.2
–add-module=…/ngx_lua_upstream-0.05
–add-module=…/headers-more-nginx-module-0.29
–add-module=…/array-var-nginx-module-0.05
–add-module=…/memc-nginx-module-0.16
–add-module=…/redis2-nginx-module-0.12
–add-module=…/redis-nginx-module-0.3.7
–add-module=…/rds-json-nginx-module-0.14
–add-module=…/rds-csv-nginx-module-0.07
–with-ld-opt=-Wl,-rpath,/usr/local/openresty/luajit/lib
–with-http_ssl_module

Thanks in advance.

Cheers,
Jorge Romero

On Thu, Apr 14, 2016 at 12:46:05AM -0600, Jorge Romero wrote:

Hi there,

I’m trying to configure Nginx 1.9.7 as a proxy server. This proxy server won’t
serve as SSL termination for HTTPS requests, for which the proxy_ssl directive
sounds perfect.

I don’t understand what your design is, but that’s ok. You’re happy that
the “stream” system is what you want.

http://nginx.org/en/docs/stream/ngx_stream_proxy_module.html?&_ga=1.265652687.1742266542.1457571695#proxy_ssl

However, I’m getting the following error:

nginx: [emerg] unknown directive “proxy_ssl” in /home/devel/nginx.conf:14

I’m under the impression that this module is included in the core, but I might
be wrong. How should go about compiling with the corresponding module included?

./configure --help | grep stream

Then add the bits that you want.

f

Francis D. [email protected]

On Thursday 14 April 2016 00:46:05 Jorge Romero wrote:

I’m under the impression that this module is included in the core, but I might
be wrong. How should go about compiling with the corresponding module included?

[…]

“The ngx_stream_ssl_module module (1.9.0) provides the necessary support
for a stream proxy server to work with the SSL/TLS protocol. This module
is not built by default, it should be enabled with the
–with-stream_ssl_module configuration parameter.”

http://nginx.org/en/docs/stream/ngx_stream_ssl_module.html

wbr, Valentin v. Bartenev