Error reporting reason:
NGX is not installed_http_ssl_Module module
Solution:
-
- check which modules are installed in Nginx
/usr/local/ngxin/sbin/nginx -V
nginx version: nginx/1.12.2
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
configure arguments:
No parameters after configure arguments indicates that no modules are installed
install NGX_http_ssl_Module
the module is in the installation directory ofngxin
, note the installation directory, find configure and execute:
./configure --prefix=/usr/local/nginx
./configure --with-http_ssl_module
After installation, execute make
and make install
make
...
make install
Back up the original nginx
, and overwrite the compiled nginx
with the original nginx
cp /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak
cp ./objs/nginx /usr/local/nginx/sbin/
Check whether the installation is successful
/usr/local/nginx/sbin/nginx -V
nginx version: nginx/1.12.2
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
built with OpenSSL 1.0.2k-fips 26 Jan 2017
TLS SNI support enabled
configure arguments: --with-http_ssl_module
[UNK] enable nginx
/usr/local/nginx/sbin/nginx -s reload
Read More:
- Nginx Error: Swap file “/etc/nginx/.nginx.conf.swp“ already exists
- Nginx Error: SSL: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small
- Nginx error: nginx: [error] invalid PID number ““ in “/run/nginx.pid“
- Nginx Startup Error: “/var/run/nginx/nginx.pid” failed” [How to Solve]
- [Solved] nginx: [error] open() “/usr/local/nginx/nginx.pid” failed (2: No such file or directory)
- How to Fix No default.conf file in conf.d after Installing Nginx
- [Solved] Nginx Restart Error: /run/nginx.pid failed (2: No such file or directory)
- Nginx Startup Error: Job for nginx.service failed because the control process exited with error code
- Restart and stop of nginx in Linux service
- [Solved] Error during installation of nginx: Make: * * * [build] error 2
- Solve the problem of 404 Not Found error in nginx accessing dynamic interface
- [Solved] Nginx Startup Error: directive is not allowed here in
- nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
- Nginx Error: [emerg] bind() to [::]:80 failed (98: Address already in use)
- Nginx Reverse Proxy 426 Error [How to Fix]
- Common configuration methods of nginx
- Nginx realizes the same background service for portal and business
- summary of configuration and deployment of uwsgi+nginx+flag in centos7 and why internal server error is prompted [official instructions]
- Nginx configuration 80 can be accessed by forcing jump 443 or not
- [Solved] Git Error: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443