Strona 1 z 1

Problem z instalacją modułu pagespeed dla serwera Nginx

: 28 września 2017, 22:43
autor: w_sloma
witam serdecznie.
Posiadam VPS, który obsługuje moją stronę internetową. Jest zainstalowany Debian 8 64bit, serwer www Nginx. wszystko działa poprawnie ale dość wolno.
Chce polepszyć szybkość strony korzystając z modułu od Google - ngx_pagespeed.
po wykonaniu polecenia na serwerze:
bash <(curl -f -L -sS https://ngxpagespeed.com/install) \
--nginx-version latest
nastąpiła automatyczna instalacja modułu, wszystko przebiegło poprawnie.
Na końcu otrzymałem komunikat
ngx_pagespeed is ready to be build against nginx.
when running ./configure:
Give ./configure the following arguments:
--add-module=/root/nginx_pagespeed-latest-stable
If this is for integration with an already-built nginx, make sure to include any other arguments you orginally passed to ./configure. you can see these with 'nginx -V'.

JAK dokończyć tą konfigurację zeby uaktywnić modul ?
w logu jest napisane
2017/09/28 21:57:42 [emerg] 12225#12225: unknown directive "pagespeed" in /etc/nginx/nginx.conf:64
Proszę o pomoc.
Pozdrawiam
Wojciech Słomiński

Moderacja: Proszę używać znaczników kodu.

Re: Problem z instalacją modułu pagespeed dla serwera Nginx

: 01 października 2017, 20:16
autor: mariaczi
Jak instalowałeś nginx'a - z repozytoriów czy ze źródeł?

Re: Problem z instalacją modułu pagespeed dla serwera Nginx

: 02 października 2017, 08:20
autor: LordRuthwen
Musisz przebudować nginxa, samo się n zrobi.
https://www.digitalocean.com/community/ ... n-debian-8