http_ssl_module konnte beim Kompilieren aus dem Quellcode von nginx nicht installiert werden

http_ssl_module konnte beim Kompilieren aus dem Quellcode von nginx nicht installiert werden

Ich versuche, mein https mit Certbot einzurichten, also muss ich ngx neu kompilieren und „--with-http_ssl_module“ hinzufügen. Hier sind die vollständigen Schritte:

 - sudo make clean  sudo  
 - ./auto/configure --prefix=/var/www/html
   --sbin-path=/usr/sbin/nginx --conf- path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log
       --error-log-path=/var/log/nginx/error.log --with-pcre --with-http_ssl_module  --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --modules-path=/etc/nginx/modules 
 - check Makefile , I can see 'http_ssl_module' added in objs/Makefile
 - ./auto/configure sudo make sudo make install

Nachdem ich alle oben genannten Schritte abgeschlossen hatte (kein Fehler festgestellt), überprüfte ich 'ngx_modules.o' (es fehlt immer noch das SSL-Modul) und führte den folgenden Befehl aus

sudo certbot --nginx -d feedme.pub 
Saving debug log to /var/log/letsencrypt/letsencrypt.log 
The nginx plugin is not working; there may be problems with your existing configuration. 
The error was: PluginError('Nginx build is missing SSL module (--with-http_ssl_module).') 

Außerdem habe ich meine SSL-Bibliothek überprüft – libssl ist installiert:

ldconfig -p | grep libssl
    libssl3.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libssl3.so
    libssl.so.1.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libssl.so.1.1
    libssl.so.1.0.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
    libssl.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libssl.so

Kann mir jemand helfen, die Frage zu beantworten, warum ich „--with-http_ssl_module“ nicht einbauen kann?

verwandte Informationen