after ty hard i got it, install the nginx (from source) with passenger and google pagespeed. I've setup the nginx conf and it worked but, i dint see any diference using pagespeedy(my scripts stills unminified). Studyng a little i saw that PGSPD have an admin page where i can see what is happening and configure somethings. So i can't access this admin pages here is my nginx conf:
#user nobody;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
passenger_root /home/icaro/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/passenger-5.0.15;
passenger_ruby /home/icaro/.rbenv/shims/ruby;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
gzip on;
server {
listen 80;
pagespeed on;
pagespeed FileCachePath /tmp/pgsp;
passenger_enabled on;
passenger_app_env production;
root /home/icaro/icarodroplet/public;
}
server{
pagespeed on;
pagespeed FileCachePath /tmp/pgsp;
location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" {
add_header "" "";
}
location ~ "^/pagespeed_static/" { }
location ~ "^/ngx_pagespeed_beacon$" { }
location /ngx_pagespeed_statistics { allow 127.0.0.1; allow all; }
location /ngx_pagespeed_global_statistics { allow 127.0.0.1; allow all; }
location /ngx_pagespeed_message { allow 127.0.0.1; allow all; }
location /pagespeed_console { allow 127.0.0.1; allow all; }
location ~ ^/pagespeed_admin { allow 127.0.0.1; allow all; }
location ~ ^/pagespeed_global_admin { allow 127.0.0.1; allow all; }
}
}
that's right? why i cant see differences there is a way to test the pagespeed? how can i access the admin pages?
Aucun commentaire:
Enregistrer un commentaire