Answer the question
In order to leave comments, you need to log in
Why doesn't nginx see the pagespeed module?
Good!
Installed pagespeed according to the documentation https://developers.google.com/speed/pagespeed/modu...
By writing pagespeed on in /etc/nginx/nginx.conf; the server does not restart. Doesn't see the pagespeed module. Where it was installed and where to define the path so that nginx sees the pagespeed module.
Answer the question
In order to leave comments, you need to log in
The point is actually something else.
I compiled it, but the process stopped at this:
./configure: error: no tmp/ngx_pagespeed-release--beta/config was found
Initially, I unpacked ngx_pagespeed to /root/
I decided it was because of permissions. Moved to /tmp, unpacked, applied chmod -R 777 to /tmp
Everything started to spin.
BUT!
-e "s|%%PID_PATH%%|/usr/local/nginx/logs/nginx.pid|" \
-e "s|%%CONF_PATH%%|/usr/local/nginx/conf/nginx.conf|" \
-e "s|%%ERROR_LOG_PATH%%|/usr/local/nginx/logs/error.log|" \
Everything was installed according to this path '/usr/local/nginx/conf/'
And I have all the configs in /etc/nginx/nginx.conf
Therefore:
[[email protected] nginx-1.6.2]# /etc/init.d/nginx restart
nginx: [emerg] unknown directive "pagespeed" in /etc/nginx/nginx.conf:17
nginx: configuration file /etc/nginx/ nginx.conf test failed
So in the same manual, you must first compile it into nginx, and you immediately started setting it up
https://developers.google.com/speed/pagespeed/modu...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question