title: 503 Backend fetch failed on magento 2.3.0 site with varnish cache
body: <p><a href="http://tyanabelle.com" rel="nofollow noreferrer">http://tyanabelle.com</a> returns <code>503 Backend fetch failed</code> but the <strong>https</strong> <a href="https://tyanabelle.com" rel="nofollow noreferrer">counter part</a> <strong>DOES work</strong> though.</p>
  
  <p>I'm using <strong>apache v2.4.37</strong>
  and varnish cache,
  and the website is a <strong>magento 2.3.0</strong> vanilla website,
  specifically all of that configuration comes from a <a href="https://docs.bitnami.com/aws/apps/magento/" rel="nofollow noreferrer">bitnami aws magento image</a>.</p>
  
  <ul>
  <li>Here's my <a href="https://gist.github.com/SudoPlz/6c65404981729f0b400f493b61616cf7#file-apache-conf" rel="nofollow noreferrer"><strong>apache configuration</strong></a></li>
  <li>and in this file I've set my <a href="https://gist.github.com/SudoPlz/6c65404981729f0b400f493b61616cf7#file-vhosts-conf" rel="nofollow noreferrer"><strong>virtual hosts</strong></a></li>
  <li>and here's my <a href="https://gist.github.com/SudoPlz/6c65404981729f0b400f493b61616cf7#file-varnish-vcl" rel="nofollow noreferrer"><strong>varnish configuration</strong></a></li>
  <li>Here is the <a href="https://gist.github.com/SudoPlz/6c65404981729f0b400f493b61616cf7#file-sudo-varnishlog" rel="nofollow noreferrer">varnish log</a> after I run <code>varnishlog</code>.</li>
  </ul>
  
  <p>Specifically if I remove this Rewrite from the <strong>virtual hosts</strong> file:</p>
  
  <pre><code>RewriteEngine On 
  RewriteCond %{HTTPS} off [OR]
  RewriteCond %{HTTP_HOST} ^www\. [NC]
  RewriteRule ^ https://tyanabelle.com%{REQUEST_URI} [R=301,L,NE]
  </code></pre>
  
  <p>I no longer receive 503 errors.</p>
  
  <p>But I want to be able to redirect ALL (subdomain or non subdomain) calls to https.</p>
  
  <p>Not sure if related, but on Route 53 (aws dns settings) I redirect all subdomain calls to the main domain like so:</p>
  
  <p><a href="https://i.stack.imgur.com/s2JSU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s2JSU.png" alt="route 53"></a></p>
  
  <p>but this shouldn't play a role.</p>
  
  <p>The end desirable result is, I want ALL the following subdomains:</p>
  
  <pre><code>http://tyanabelle.com
  http://www.tyanabelle.com
  http://*.tyanabelle.com
  https://tyanabelle.com
  https://www.tyanabelle.com
  https://*.tyanabelle.com
  </code></pre>
  
  <p>(<strong>ALL of them</strong>) to be rewritten as <a href="https://tyanabelle.com" rel="nofollow noreferrer">https://tyanabelle.com</a></p>
  
  <p>I've spent the past 3 hours on this, please help.</p>