alexweissman commented on issue #722: Unknown directive "pagespeed" in /etc/nginx/nginx.conf:43 URL: https://github.com/apache/incubator-pagespeed-ngx/issues/722#issuecomment-457930887 It's worth mentioning that Ubuntu's unattended upgrades, as configured by default, could potentially replace your custom compiled version of nginx with an updated version that does not have the pagespeed module installed. Needless to say this can be a disaster in production, since this error prevents nginx from starting entirely. I recommend blacklisting nginx from Ubuntu's unattended upgrades. 1. In `/etc/apt/apt.conf.d/50unattended-upgrades`, find the block that begins with `Unattended-Upgrade::Package-Blacklist {`. 2. Add the following lines in this block: ``` // Do not update nginx, since we use a custom build for pagespeed "nginx"; ``` This should prevent Ubuntu from replacing your custom nginx build.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
