mr-observer commented on issue #1674: Varnish with PageSpeed module
URL: 
https://github.com/apache/incubator-pagespeed-ngx/issues/1674#issuecomment-567963271
 
 
   SSL host is using proxy_pass.
   This is my Vhosts:
   
   `server {
        listen *:443 ssl http2;
        server_name test.onlinemagento.com;
        index index.php;
        pagespeed off;
   
        set $user 'ogalo';
        set $base /home/users/$user/public_html/pub;
        root $base;
   
        location ~ \.php$ {
                set $php '71';
                include settings/fastcgi/use;
        }
   
        include settings/hosting/magento2;
        include settings/hosting/locations;
        include settings/hosting/ssl_certs;
        include settings/security/security_headers;
   
        location / {
           proxy_pass http://127.0.0.1:6081;
           proxy_set_header Host $http_host;
           proxy_set_header X-Forwarded-Host $http_host;
           proxy_set_header X-Real-IP $remote_addr;
           proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
           proxy_set_header Ssl-Offloaded "1";
           proxy_set_header X-Forwarded-Proto https;
           proxy_set_header X-Forwarded-Port 443;
           proxy_redirect http://test.onlinemagento.com:8080/ /;
           proxy_http_version 1.1;
       }
   }
   
   server {
        listen *:8080;
        server_name test.onlinemagento.com;
        index index.php;
       #pagespeed off;
   
       set $user 'ogalo';
       set $base /home/users/$user/public_html/pub;
       root $base;
   
       location / {
                try_files $uri $uri/ /index.php?$query_string;
                add_header 'Access-Control-Allow-Origin' '*' always;
        }
   
       location ~ \.php$ {
                set $php '71';
                include settings/fastcgi/use;
        }
   
        include settings/hosting/magento2;
   
        include settings/pagespeed/optimize.conf;
        pagespeed Disallow https://test.onlinemagento.com/admin/*;
        pagespeed DownstreamCachePurgeLocationPrefix http://127.0.0.1:6081;
        #pagespeed DownstreamCacheRebeaconingKey "fO95w6H2V9vAy5RN";
        pagespeed Domain http://test.onlinemagento.com:8080;
        pagespeed Domain http://test.onlinemagento.com:6081;
        #pagespeed MapOriginDomain http://127.0.0.1 
https://test.onlinemagento.com;
        #pagespeed LoadFromFile http://test.onlinemagento.com:8080 
/home/users/ogalo/public_html/;
   }`

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


With regards,
Apache Git Services

Reply via email to