How to add ngx_http_ssl_module to the compiled version of nginx
Asked Answered
C

1

8

I have a problem with setting ssl on my server. I have configured nginx with the modpagespeed (compiled version from https://www.modpagespeed.com/doc/build_ngx_pagespeed_from_source)

nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf

I need to add the ngx_http_ssl_module module, but I don't know how to do it without damage the rest of the configuration that I already have.

Cantilever answered 11/6, 2019 at 12:18 Comment(0)
C
1

I think that the only way is to re-build nginx by adding http_ssl_module.

Install OpenSSL development library libssl-dev:

sudo apt-get install libssl-dev

Rebuild nginx with http_ssl_module by adding --with-http_ssl_module in your configuration ( https://www.modpagespeed.com/doc/build_ngx_pagespeed_from_source) in section "Download and build nginx with support for pagespeed:"

./configure --with-http_ssl_module --add-module=$HOME/$nps_dir ${PS_NGX_EXTRA_FLAGS}
make
sudo make install
Consumedly answered 22/5 at 20:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.