Nginx does not start: unknown policy "pagespeed"

1

Good morning,

I have been using Nginx with PageSpeed for more than a year to increase the load, compression and cache of my web pages. I own a URLS shortener with millions of monthly visits. I installed the certbot to add HTTPS to the website with Let's Encrypt and from that moment I restarted Nginx with service nginx restart and started experiencing problems.

Next I leave the complete error (source: systemctl status nginx.service ) to depurify the error that occurs when starting Nginx.

systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2017-10-11 18:12:55 EDT; 4s ago
  Process: 9090 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
 Main PID: 14066 (code=killed, signal=KILL)

Oct 11 18:12:55 vps118687 systemd[1]: Starting A high performance web server and a reverse proxy server...
Oct 11 18:12:55 vps118687 nginx[9090]: nginx: [emerg] unknown directive "pagespeed" in /etc/nginx/conf.d/pagepseed.conf:2
Oct 11 18:12:55 vps118687 nginx[9090]: nginx: configuration file /etc/nginx/nginx.conf test failed
Oct 11 18:12:55 vps118687 systemd[1]: nginx.service: Control process exited, code=exited status=1
Oct 11 18:12:55 vps118687 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Oct 11 18:12:55 vps118687 systemd[1]: nginx.service: Unit entered failed state.
Oct 11 18:12:55 vps118687 systemd[1]: nginx.service: Failed with result 'exit-code'.

UPDATE

It seems that when installing the certgin nginx was reinstalled, how can I solve this and leave the old version? whereis nginx returns /usr/sbin/nginx /etc/nginx /usr/local/sbin/nginx /usr/local/nginx /usr/share/nginx

Thanks for your answers.

    
asked by Esteban Morallo 12.10.2017 в 00:55
source

0 answers