nginx adds method tutorials for the ssl module

  • 2020-05-14 05:59:23
  • OfStack

preface

Has been installed good nginx, if not clear installation method of friends can refer to this article: / / www ofstack. com article / 128758. htm

Now you need to add an ssl module that has not been compiled and installed:

nginx -V You can see what parameters were taken at compile time

Original parameters:


--prefix=/app/nginx

Added parameters:


--with-http_stub_status_module --with-http_ssl_module --with-http_realip_module

The steps are as follows:

1. Reconfiguration with parameters:


./configure --prefix=/app/nginx -user=nobody -group=nobody --with-http_stub_status_module \
--with-http_ssl_module --with-http_realip_module \
--add-module=../nginx_upstream_hash-0.3.1/ \
--add-module=../gnosek-nginx-upstream-fair-2131c73/

2. Compile:


make
# Don't make install Otherwise it is an override installation 

3. Replace the nginx2 base file:


cp /app/nginx/sbin/nginx /app/nginx/sbin/nginx.bak
cp ./objs/nginx /app/nginx/sbin/

conclusion


Related articles: