# Unknown directive "proxy\_ssl"

**URL:** <https://www.ruby-forum.com/t/unknown-directive-proxy-ssl/244460>\
**Category:** NGINX\
**Created:** [April 14, 2016, 8:46am UTC](https://www.ruby-forum.com/t/unknown-directive-proxy-ssl/244460 "2016-04-14T08:46:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [April 14, 2016, 8:46am UTC](https://www.ruby-forum.com/t/unknown-directive-proxy-ssl/244460/1 "2016-04-14T08:46:54Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![Jorge\_Romero](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/58f4c7/32.png) [@Jorge\_Romero](https://www.ruby-forum.com/u/Jorge_Romero)\
**Post date:** [April 14, 2016, 9:17am UTC](https://www.ruby-forum.com/t/unknown-directive-proxy-ssl/244460/2 "2016-04-14T09:17:52Z")

</div>

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.

> 

> **[Module ngx\_stream\_proxy\_module](http://nginx.org/en/docs/stream/ngx_stream_proxy_module.html?&_ga=1.265652687.1742266542.1457571695#proxy_ssl)**
>
> The ngx\_stream\_proxy\_module module (1.9.0) allows proxying data streams over TCP, UDP (1.9.13), and UNIX-domain sockets.

> 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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Jorge\_Romero](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/58f4c7/32.png) [@Jorge\_Romero](https://www.ruby-forum.com/u/Jorge_Romero)\
**Post date:** [April 14, 2016, 8:35pm UTC](https://www.ruby-forum.com/t/unknown-directive-proxy-ssl/244460/3 "2016-04-14T20:35:30Z")

</div>

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.”

> **[Module ngx\_stream\_ssl\_module](http://nginx.org/en/docs/stream/ngx_stream_ssl_module.html)**

wbr, Valentin v. Bartenev
