Virtualhost issue

andan andan armdan20 at gmail.com
Mon Nov 2 15:09:35 CET 2009


2009/11/2 Vladimir Dyachenko <vlad.dyachenko at gmail.com>:
> Folks,
>
> I am discovering Varnish which looks like a gift from Gods, or from
> Poul-Henning.
>
> We have one case where clients gets big DDoS and we distibute HTTP servers
> between various ISP. I have set it up alright for one host, but now I need
> to do virtualhost as we have various sites.
>
> Upon restart varnish does not start (no error and nothing in logs).
> Wondering what obvious I did wrong.
>
> Here is my configuration:
>
> /// start
>
> # This is a basic vcl.conf file for varnish.
>
> backend default {
>         set backend.host = "localhost";
>         set backend.port = "80";
> }

You are using an old syntax, backend syntax has changed.

backend default {
   .host = "localhost";
   .port  = "80";
}

man 7 vcl (you should revise all the configuration).

BTW: Probably your init scripts are sending errors to /dev/null

Hope this helps.



More information about the varnish-misc mailing list