Virtualhost issue
andan andan
armdan20 at gmail.com
Tue Nov 3 13:36:30 CET 2009
2009/11/3 Vladimir Dyachenko <vlad.dyachenko at gmail.com>:
> Folks,
>
> I have changed the configuration to the following (mostly based on
> mediawiki). Any idea why it does not restart? Sill empty logs.
>
> [root at net2 ~]# varnishd -V
> varnishd (varnish-2.0.4)
> Copyright (c) 2006-2009 Linpro AS / Verdens Gang AS
>
> [root at net2 ~]# cat /etc/varnish/default.vcl
>
> # set default backend if no server cluster specified
> backend default {
> .host = "www.google.ru";
> .port = "80";
> }
www.google.ru resolves to multiple IPs. You are trying to use varnish
with a strange behaviour :)
To see errors, in your init script change:
daemon ${DAEMON} "$DAEMON_OPTS" -P ${PIDFILE} > /dev/null 2>&1
by:
daemon ${DAEMON} "$DAEMON_OPTS" -P ${PIDFILE} > /whereveryouwant 2>&1
Or simply remove > /dev/null 2>&1 to see errors on console.
Kind Regards.
More information about the varnish-misc
mailing list