I'm out of house for some hours, with mobile device. When returns to house I will see the whole message. The thing is, mainproject processes html code, and the others URLs contained in the html code processed by the mailproject. Right? Then you need pagespeed enabled in these other server blocks. And in the mainproject you need some like: pagespeed Domain http*://*.domain.com; This cover all version (http/Https) and all subdomains ( Are images and assets subdomains from the same domain that mainproject?)
In all other servers blocks yo need pagespeed on; pagespeed Domain http*://images.domain.com; Same for assets. Most of the pagespeed directives that are common to al servers, you can put it in the nginx http block, and not need to duplicate it. In other hand, pagespeed off; can't disable pagespeed, or not totally. IPRO still working. To disable totally, you must use pagespeed unplugged; El mar., 24 nov. 2020 15:15, GitBox <g...@apache.org> escribió: > > luison commented on issue #2052: > URL: > https://github.com/apache/incubator-pagespeed-mod/issues/2052#issuecomment-733000614 > > > Hi again, thanks for the prompt reply. > No, our setup is more like > > ``` > nginx { > all server stuff > pagespeed config stuff > pagespeed off > } > > server { > port 443; > name mainproject.domain.com; > pagespeed on; (and all pagespeed config needed) > location /static - serving directly css, img, js > all nginx proxy stuff; > } > server { > port 443; > name images.domain.com; > pagespeed off; > all nginx proxy stuff; (included proxy_pass > http://images.domain.com;) > } > server { > port 443; > name assets.domain.com; > pagespeed off; > all nginx proxy stuff; (included proxy_pass > http://assets.domain.com;) > } > ``` > > mainproject is proxying our backend for all php mainly > images coming from images.domain.com > > I guess by your message that my answer then is that if I wan pagespeed > on maindomain to interact with resources coming from images.domain.com I > need pagespeed on also on that nginx server proxy with its own config set > (only images resizing in that case) correct? > > > > > ---------------------------------------------------------------- > 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: > us...@infra.apache.org > > >