I would like to install ngx_pagespeed on my existing website. Everyone is saying that you need to reinstall nginx completely but unfortunately I can't do that.
Does anyone know how to do this?
- nginx version: 1.6.2
The ngx_pagespeed module url: https://github.com/pagespeed/ngx_pagespeed
Thanks in advance!
EDIT:
I found something about a dynamic module but I don't understand how to use it
If you would like to build ngx_pagespeed as a dynamic module instead, use --add-dynamic-module= instead of --add-module=. If you build as a dynamic module you also need to tell nginx to load the ngx_pagespeed module by adding this to the top of your main nginx configuration: load_module "modules/ngx_pagespeed.so";