A
A
arkanum2014-12-07 10:10:47
Google
arkanum, 2014-12-07 10:10:47

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

2 answer(s)
A
arkanum, 2014-12-07
@arkanum

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

P
Puma Thailand, 2014-12-07
@opium

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 question

Ask a Question

731 491 924 answers to any question