nginxでmod_pagespeed
apacheにはmod_pagespeedがありますが、nginxにはないのー?って事でぐぐったらngx_pagespeedがあるようです。
https://github.com/pagespeed/ngx_pagespeed
とはいえまだまだ絶賛開発中のようです。apacheモジュールのmod_pagespeedとほぼ同じ機能が利用できるようにがんばってるっぽいです。
css,javascript,画像の最適化、htmlの書換、キャッシュなどなど・・
とりあえず試してみた。
ngx_pagespeedはapacheのmod_pagespeedを使うようなのではじめにmod_pagespeedをコンパイルする必要があります。
build mod_pagespeed from source https://developers.google.com/speed/docs/mod_pagespeed/build_from_source
httpd gcc-c++ python subversion gperf make rpm-build git python2.6 chromium depot toolsが必要
sudo yum install httpd gcc-c++ python subversion gperf make rpm-build git wget http://www.python.org/ftp/python/2.6/Python-2.6.tgz tar xzf Python-2.6.tgz cd Python-2.6 ./configure --prefix=/usr/local make -j >make.log sudo make install
こんかいはここまで