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 <[email protected]> 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 < > [email protected]> 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 <[email protected]> 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 >>> [email protected] >>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc >>> >> > > -- > VARUN NATH A V >
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
