• 7
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

I have configure varnish with magento 2 with the reverse proxy in apache ubuntu.

But, when I see at the headers, I always get the header MISS from the host.

So, page is not being cached by the varnish. Also I have noticed that page speed is decrease after done the reverser proxy to work varnish over SSL 443 port.

When I see the output of the varnishtop -i BereqURL, all the accessed pages of website are showing in the list of BereqURL.

For reverse proxy I have added below code in my-ssl.conf

ProxyPreserveHost On
ProxyPass               / http://127.0.0.1:80/
ProxyPassReverse        / http://127.0.0.1:80/
RequestHeader set X-Forwarded-Port "443"
RequestHeader set X-Forwarded-Proto "https"

So do I need to add any other header for vanish start caching the all pages?

Can anyone help me with this issue?

Trending Tags