Lofesa commented on issue #1729:
URL: 
https://github.com/apache/incubator-pagespeed-ngx/issues/1729#issuecomment-817279963


   1.- `pagespeed FetchHttps enable`  need 
   ```
   pagespeed SslCertDirectory directory;
   pagespeed SslCertFile file;
   ```
   See  
https://www.modpagespeed.com/doc/https_support#configuring_ssl_certificates as 
stated by @oschaaf 
   
   2.- `pagespeed Domain https://ladesignconcepts.com;` and `pagespeed Domain 
http*://*.ladesignconcepts.com;` are redundant, the 1st is included in the 2nd.
   
   3- Why you need MapRewriteDomain, MapOriginDomain and ShardDomain?
   
   Whit `pagespeed MapRewriteDomain ladesignconcepts.com 
images.ladesignconcepts.com;` any `images.ladesignconcepts.com` in the html 
code is converted to `ladesignconcepts.com` but I canĀ“t see any 
`images.ladesignconcepts.com` in the html code when pagespeed is turned off.
   
   Whit `pagespeed ShardDomain https://images.ladesignconcepts.com 
https://ladesignconcepts.com;` you try to download request to 
`https://images.ladesignconcepts.com` from `https://ladesignconcepts.com` but 
you use http2 so no shard works here. Http2 creates 1 connection and download 
all assets from this connection.
   
   Whit `pagespeed MapOriginDomain localhost ladesignconcepts.com;` you make a 
request to localhost when the client request `http://ladesignconcepts.com`. 
This need 2 servers blocks in nginx config, 1 for `localhost` (http) and 1 for 
`ladesignconcepts.com` (http).
   If `ladesignconcepts.com` is https and you have this config, then the 
directive must be set as:
   `pagespeed MapOriginDomain localhost https://ladesignconcepts.com;`


-- 
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


Reply via email to