nginx prompts that the ssl module is missing

If Nginx does not enable the SSL module, it will prompt an error when configuring HTTPS.

The reason is also very simple. nginx lacks the http_ssl_module module. When compiling and installing, just bring the --with-http_ssl_module configuration. But the current situation is that my nginx has already been installed. How to add the module is actually very simple. See below. : Just a note: My nginx installation directory is the /usr/local/nginx directory, and my source code package is in the /usr/local/src/nginx-1.6.2 directory.

1

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

View the original modules of nginx

1

/usr/local/nginx/sbin/nginx -V

Then our new configuration information should be written like this:

1

./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module

Just run the above command and wait until the configuration is completed

Then execute make install

Guess you like

Origin blog.csdn.net/nocoah/article/details/122238909