Turn pagespeed on only for specific site

39 views
Skip to first unread message

Danny Michel

unread,
Dec 7, 2017, 3:03:34 PM12/7/17
to mod-pagespeed-discuss
Any way i can turn pagespeed on a per site bases in the server {} section? If so, can i turn it on a location {} and only one location? If so, can someone show me an extremely basic example?

Longinos

unread,
Dec 11, 2017, 3:18:49 AM12/11/17
to mod-pagespeed-discuss
Hi Danny
Yes, you can enable pagespeed in a server block, don´t know if it work in location.
You can enable pagespeed in the http block and disable it in a sever :
http {
         pagespeed on;
         ......
     
      server {
                 pagespeed off;
                 ........
                }
}

or you can:

http{
       .........
      server {
                 pagespeed on;
                 ......
                 }
      server {
                pagespeed off;
                .......
               }
}

When enabled in the http block it is on on all server blocks by default
Reply all
Reply to author
Forward
0 new messages