• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Issue Isssues with Varnish Docker and Magento

KooTjoo

Basic Pleskian
Hi all,

Hope someone can help me here. I am trying to get Varnish Docker to work with my Magento 2 Installation. I have a multistore setup in Magento with different .tld's pointing to 1 site. If I setup the default VCL like this:

backend default {
.host = "www.mydomain.com";
.port = "7080";
.first_byte_timeout = 600s;
.probe = {
.url = "/pub/health_check.php";
.timeout = 2s;
.interval = 5s;
.window = 10;
.threshold = 5;
}
}

Everything works like it should. I get a Varnish Hit on my pages for this domain. My issue is that I want to use the IP for the .host setting since I have different .tld's If I use this

backend default {
.host = "155.144.214.155";
.port = "7080";
.first_byte_timeout = 600s;
.probe = {
.url = "/pub/health_check.php";
.timeout = 2s;
.interval = 5s;
.window = 10;
.threshold = 5;
}
}

I get a backend fetch failed error. I have a server with multiple IP's I have tried IP from server itself and the IP of the subscription.

I hope anyone can share some light on this and point me in the right direction.

Thanks!
 
Back
Top