Mailing List Archive

Varnish - configuration
How to configure varnish to cache files from website that is on anoter IP
adress as the varnish ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.linpro.no/pipermail/varnish-misc/attachments/20070723/72a31e42/attachment.htm
Varnish - configuration [ In reply to ]
From: Kamil Radziszewski <kradziszewski@gmail.com>
>How to configure varnish to cache files from website that is on anoter IP adress as the varnish ?

"man vcl" gives you info on the backend directive to use in your vcl config:

backend default {
set backend.host = "www.example.com";
set backend.port = "80";
}

You can also use more than one backend, but instead of quoting the entire manpage, it@?s better if you check it yourself really.

Regards
--
Denis Braekhus - Teknisk Ansvarlig ABC Startsiden AS
http://www.startsiden.no
Varnish - configuration [ In reply to ]
Allrigth but i don't know how to set the path where the files should be
cached....i don't know if the default configuration is correct for me ...
Varnish - configuration [ In reply to ]
Kamil Radziszewski <kradziszewski at gmail.com> writes:

> Allrigth but i don't know how to set the path where the files should be
> cached....i don't know if the default configuration is correct for me ...

That's in the man page of "varnishd".

--
Stig Sandbeck Mathisen, Linpro
Varnish - configuration [ In reply to ]
In message <46A4E9E5.4030402 at gmail.com>, Kamil Radziszewski writes:
>Allrigth but i don't know how to set the path where the files should be
>cached....i don't know if the default configuration is correct for me ...

By default the cache file is created under /tmp

--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.