How to use ngx_pagespeed module on folder only

时间:2017-06-09 12:55:23

标签: nginx config pagespeed

i am struggling around to get pageSpeed working on some subfolders only. My own code is already optimized, so that pageSpees isnt neccessary there.

But the folders /forum /dashboard and /blog are running different kind of software which i want to get optimized by pageSpeed.

i tried pagespeed = off; globally and pagespeed = on; inside the locations /forum /dashbaord, etc. but without success. It just works for the entire domain which isnt what i want it to do.

Do you have any idea how to set up nginx config to controll pageSpeed for some subfolders only while leaving the rest of that domain untouched?

THanks in advance

0 个答案:

没有答案