title: Varnish + Nginx proxy configuration on plesk
body: <p>I followed the official tuto for the Varnish via Docker configuration on plesk. <a href="https://www.plesk.com/blog/product-t...cker-container" rel="nofollow noreferrer">https://www.plesk.com/blog/product-t...cker-container</a></p>
  
  <p>i have a VPS Ubuntu with plesk and many domains. </p>
  
  <p>I followed all steps : 
  I created a domain test.monserveur.com
  I use the Docker image million12/varnish
  On the Docker container setting, the mapping redirect the 80 port to the 32780
  On plesk for the hosting parameters, the option “SSL/TLS support” and “Permanent SEO-safe 301 redirect from HTTP to HTTPS” are deactivated
  I deactived also the security mod for this domain
  On the proxy rules of the docker container (/etc/varnish/default.vcl), i put fo the .host test.monserveur.com and .port 7080
  On the function sub vcl_deliver, i put :</p>
  
  <pre><code>if (obj.hits &gt; 0) {
  set resp.http.X-Cache = "HIT";
  } else {
  set resp.http.X-Cache = "MISS";
  }
  </code></pre>
  
  <p>I still have a 503 page with a MISS on the header for the page on test.monserveur.com </p>
  
  <p>I can't understand where is the problem. I tried to put on the .host the serveur IP and with a link to another domain of the server. I think it's a problem with a setting but i don't know where. </p>
  
  <p>Thanks in advance</p>