salvoaranzulla commented on issue #1679: pagespeed with load balancer (nginx) 
and front-end (apache)
URL: 
https://github.com/apache/incubator-pagespeed-ngx/issues/1679#issuecomment-583850130
 
 
   @Lofesa Thanks for your help and your patience.
   
   I have written this configuration:
   
   `# ----------------------------------------------------------------------
   # | Mod PageSpeed Configuration                                        |
   # ----------------------------------------------------------------------
   
   <IfModule pagespeed_module>
       ModPagespeed on
       AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html
       ModPagespeedXHeaderValue "pagespeed"
   
       ModPagespeedMemcachedServers "x.x.x.x,x.x.x.x.x,x.x.x.x,x.x.x.x" # 4 
memcached server
   
       ModPagespeedFileCachePath "/var/log/pagespeed" # move to tmpfs
       # ModPagespeedFileCacheSizeKb 102400 # enable with size of tmpfs disk
        ModPagespeedDefaultSharedMemoryCacheKB 0
   
       ModPagespeedDomain "https://www.example.it";
        ModPagespeedMapOriginDomain "http://localhost:8989"; 
"https://www.example.it";
        ModPagespeedRespectXForwardedProto on
   
       ModPagespeedEnableFilters collapse_whitespace
       ModPagespeedEnableFilters lazyload_images
       ModPagespeedCssInlineMaxBytes 55000
       ModPagespeedCssImageInlineMaxBytes 5500
   
       ModPagespeedDisallow "*/android-chrome-*.png"
       ModPagespeedDisallow "*/apple-touch-icon-*.png"
       ModPagespeedDisallow "*/apple-touch-icon.png"
        ModPagespeedDisallow "*/mstile-*.png"
        ModPagespeedDisallow "*/favicon-*.png"
       ModPagespeedDisallow "*/favicon.ico"
        ModPagespeedDisallow "*/browserconfig.xml"
       ModPagespeedDisallow "*/manifest.json"
   
       ModPagespeedEnableCachePurge on
   
       ModPagespeedStatisticsLogging on
       ModPagespeedLogDir "/var/log/pagespeed" # move to tmpfs
   
        ModPagespeedCacheFragment example
       
       <Location /pagespeed_admin>
           RewriteEngine Off
           SetHandler pagespeed_global_admin
           AuthType Basic
           AuthName "Restricted Area"
           AuthUserFile "path/auth/.digest_pw"
           Require valid-user
       </Location>
   </IfModule>
   
   `
   
   I run this configuration on my 4 front-end. In front of this front-ends, I 
have a load balancer with SSL.
   
   Do you suggest my any edits?
   
   Thanks,
   Salvatore  

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to