<div dir="ltr">Hi,<div><br></div><div>"elsif" needs to be "else if", and I would add:</div><div><br></div><div>else {</div><div>    return(synth(404));</div><div>}</div><div><br></div><div>at the end to make sure you only serve content from these two domains.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>-- <br></div>Guillaume Quintard<br></div></div></div>
<br><div class="gmail_quote">On Tue, Mar 14, 2017 at 9:46 PM, Rodney Bizzell <span dir="ltr"><<a href="mailto:rbizzell@measinc.com" target="_blank">rbizzell@measinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_-6552640093295014704WordSection1">
<p class="MsoNormal">So I have setup a basic default.vcl and my question how do I get the Varnish server to answer web request before going to the backend  drupal servers not sure if I am stating this correctly. Our DNS admin point the urls to Varnish server
 but I am getting page not found. Am I missing a config in the default.vcl? Thanks! I researched and I am not seeing any good information.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">backend drupal {<u></u><u></u></p>
<p class="MsoNormal">    .host = "<a href="http://drupal.miat.co" target="_blank">drupal.miat.co</a>";<u></u><u></u></p>
<p class="MsoNormal">    .port = "80";<u></u><u></u></p>
<p class="MsoNormal">    .connect_timeout = 6000s;<u></u><u></u></p>
<p class="MsoNormal">    .first_byte_timeout = 6000s;<u></u><u></u></p>
<p class="MsoNormal">    .between_bytes_timeout = 6000s;<u></u><u></u></p>
<p class="MsoNormal">}<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">backend ncwrite {<u></u><u></u></p>
<p class="MsoNormal">    .host = "<a href="http://ncwrite.miat.co" target="_blank">ncwrite.miat.co</a>";<u></u><u></u></p>
<p class="MsoNormal">    .port = "80";<u></u><u></u></p>
<p class="MsoNormal">    .connect_timeout = 6000s;<u></u><u></u></p>
<p class="MsoNormal">    .first_byte_timeout = 6000s;<u></u><u></u></p>
<p class="MsoNormal">    .between_bytes_timeout = 6000s;<u></u><u></u></p>
<p class="MsoNormal">}<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">sub vcl_recv {<u></u><u></u></p>
<p class="MsoNormal">    if (req.http.host == "<a href="http://drupal.miat.co" target="_blank">drupal.miat.co</a>"){<u></u><u></u></p>
<p class="MsoNormal">        set req.backend_hint = drupal;<u></u><u></u></p>
<p class="MsoNormal">    } elsif (req.http.host == "<a href="http://ncwrite.miat.co" target="_blank">ncwrite.miat.co</a>"){<u></u><u></u></p>
<p class="MsoNormal">       set req.backend_hint = ncwrite;<u></u><u></u></p>
<p class="MsoNormal">       return (hash);<u></u><u></u></p>
<p class="MsoNormal">    }<u></u><u></u></p>
<p class="MsoNormal">}<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<br>
<font face="Arial" color="Gray" size="2"><br>
This email (including any attachments) may contain confidential information intended solely for acknowledged recipients. If you think you have received this information in error, please reply to the sender and delete all copies from your system. Please note
 that unauthorized use, disclosure, or further distribution of this information is prohibited by the sender. Note also that we may monitor email directed to or originating from our network. Thank you for your consideration and assistance. |<br>
</font>
</div>

<br>______________________________<wbr>_________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/<wbr>lists/mailman/listinfo/<wbr>varnish-misc</a><br></blockquote></div><br></div>