• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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