Connecting to remote host

Guillaume Quintard guillaume at varnish-software.com
Thu Dec 19 08:59:23 UTC 2019


Note: please keep the mailing list CC'd

Check the host header you are sending to the backend. Usually, a 404 arises
because the URL and/or the host wrong.

I'm thinking you possibly tested varnish requesting something like
http://localhost/your/test/file, but your backend isn't configured to reply
to the "localhost" host

On Thu, Dec 19, 2019, 08:55 Varun Nath <varunnath86 at gmail.com> wrote:

> Thanks again for the quick response.
> I have checked the log and getting the expected IP address in *BackendStart
> *parameter.  Sorry I didnt get what you mean by  you need to change *the
> host header before sending the request to the backend. *Could you please
> elaborate a little bit?
>
> On Thu, Dec 19, 2019 at 2:20 PM Guillaume Quintard <
> guillaume at varnish-software.com> wrote:
>
>> Hi,
>>
>> 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.
>>
>> Cheers,
>>
>>
>> On Thu, Dec 19, 2019, 08:39 Varun Nath <varunnath86 at gmail.com> wrote:
>>
>>> Hello,
>>> I need to connect to a remote host from local VCL config file. I have
>>> added the backend config as below
>>>
>>> backend default {
>>>     .host = "remote.host.com";
>>> }
>>>
>>> But am getting Page not available message. Do I miss something?
>>> Thanks in advance
>>>
>>> --
>>> VARUN NATH A V
>>> _______________________________________________
>>> varnish-misc mailing list
>>> varnish-misc at varnish-cache.org
>>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>>>
>>
>
> --
> VARUN NATH A V
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20191219/3be8d129/attachment.html>


More information about the varnish-misc mailing list