Nginx:Installasi PageSpeed: Difference between revisions

No edit summary
 
Line 102: Line 102:
Add the following line to the top of the file:
Add the following line to the top of the file:


<syntaxhighlight lang="shell">
<syntaxhighlight lang="nginx">
load_module modules/ngx_pagespeed.so;
load_module modules/ngx_pagespeed.so;
</syntaxhighlight>
</syntaxhighlight>
Line 131: Line 131:
At the bottom of the server section, add the following:
At the bottom of the server section, add the following:


<syntaxhighlight lang="shell">
<syntaxhighlight lang="nginx" line="1">
             pagespeed on;
             pagespeed on;


Line 149: Line 149:
So that entire server block looks like this:
So that entire server block looks like this:


<syntaxhighlight lang="shell">
<syntaxhighlight lang="nginx" line="1">
  server {
  server {