<div dir="ltr">Thank You so much for your support. Will try this and let you know</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 19, 2019 at 2:49 PM Guillaume Quintard <<a href="mailto:guillaume@varnish-software.com">guillaume@varnish-software.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">The backend portion of the vcl only handles the TCP part of the equation. If your backend expect a specific host, you need to either have the client give it, or have varnish override it.<div dir="auto"><br></div><div dir="auto">Try curl -I localhost/your/file -H "host: <a href="http://whatever.your.host.is.com" target="_blank">whatever.your.host.is.com</a>"</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 19, 2019, 09:02 Varun Nath <<a href="mailto:varunnath86@gmail.com" target="_blank">varunnath86@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Yes, I tried with <a href="http://locahost" rel="noreferrer" target="_blank">http://locahost</a>, but that is expected, right? since the backend server is configured in VCL file. Sorry if I am wrong</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 19, 2019 at 2:29 PM Guillaume Quintard <<a href="mailto:guillaume@varnish-software.com" rel="noreferrer" target="_blank">guillaume@varnish-software.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Note: please keep the mailing list CC'd<div dir="auto"><br></div><div dir="auto">Check the host header you are sending to the backend. Usually, a 404 arises because the URL and/or the host wrong.</div><div dir="auto"><br></div><div dir="auto">I'm thinking you possibly tested varnish requesting something like <a href="http://localhost/your/test/file" rel="noreferrer" target="_blank">http://localhost/your/test/file</a>, but your backend isn't configured to reply to the "localhost" host</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 19, 2019, 08:55 Varun Nath <<a href="mailto:varunnath86@gmail.com" rel="noreferrer" target="_blank">varunnath86@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Thanks again for the quick response. <div>I have checked the log and getting the expected IP address in <b>BackendStart </b>parameter.  Sorry I didnt get what you mean by  you need to change <b style="font-style:italic">the host header before sending the request to the backend. </b>Could you please elaborate a little bit?</div></div><div><br></div><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 19, 2019 at 2:20 PM Guillaume Quintard <<a href="mailto:guillaume@varnish-software.com" rel="noreferrer noreferrer" target="_blank">guillaume@varnish-software.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto">Use varnishlog -b (with possibly -d) to see the backend transactions and see what IP is being used (is it the right one). It could also be that you need to change the host header before sending the request to the backend.</div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 19, 2019, 08:39 Varun Nath <<a href="mailto:varunnath86@gmail.com" rel="noreferrer noreferrer" target="_blank">varunnath86@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div>I need to connect to a remote host from local VCL config file. I have added the backend config as below</div><div><br></div><div>backend default {<br>    .host = "<a href="http://remote.host.com" rel="noreferrer noreferrer noreferrer" target="_blank">remote.host.com</a>";    <br>}</div><div><br></div><div>But am getting Page not available message. Do I miss something?</div><div>Thanks in advance<br clear="all"><div><br></div>-- <br><div dir="ltr"><span></span>VARUN NATH A V</div></div></div>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" rel="noreferrer noreferrer noreferrer" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><span></span>VARUN NATH A V</div></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><span></span>VARUN NATH A V</div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><span></span>VARUN NATH A V</div>