Nginx open ssl encryption module
1.the "ssl" parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:37
The reason is lack http_ssl_module nginx module, configured to bring --with-http_ssl_module compile mounted on it
2. If you see the following nginx already installed, you want to add module
1) to a source packet nginx
cd /usr/local/src/nginx-1.11.3
2) View original module ngixn
/usr/local/nginx/sbin/nginx -V
3) Reconfigure
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
4) recompile, make install does not require installation. Otherwise it will cover
make
5) backup of the original has been installed nginx
cp /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak
6) will be compiled just overwrite the original nginx nginx (ngixn must be stopped)
cp ./objs/nginx /usr/local/nginx/sbin/
At this time, you will be prompted whether to overwrite, enter yes, not directly enter the default cover
7) Start nginx, nginx module to view and found that has been added
/usr/local/nginx/sbin/nginx -V
The reason is lack http_ssl_module nginx module, configured to bring --with-http_ssl_module compile mounted on it
2. If you see the following nginx already installed, you want to add module
1) to a source packet nginx
cd /usr/local/src/nginx-1.11.3
2) View original module ngixn
/usr/local/nginx/sbin/nginx -V
3) Reconfigure
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
4) recompile, make install does not require installation. Otherwise it will cover
make
5) backup of the original has been installed nginx
cp /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak
6) will be compiled just overwrite the original nginx nginx (ngixn must be stopped)
cp ./objs/nginx /usr/local/nginx/sbin/
At this time, you will be prompted whether to overwrite, enter yes, not directly enter the default cover
7) Start nginx, nginx module to view and found that has been added
/usr/local/nginx/sbin/nginx -V