I just installed Varnish 4.0.3 on my home centos 7 server.
I was tryed to figure out error 503
With this tutorial i installed Varnish just fine until i got 503 error
1) wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
2) rpm -ivh epel-release-7-2.noarch.rpm
3) yum --enablerepo=epel install varnish -y
4) nano /etc/varnish/varnish.params ---- change here
VARNISH_LISTEN_PORT=80
5) nano /etc/varnish/default.vcl ---- change here
backend default {
.host = "127.0.0.1";
.port = "8088";
}
RESTART OPENLITESPEED
RESTART VARNISH
503 ERROR.
Solution was to change for default listener from lsws webadmin console port from 8088 to 8080
Also nano /etc/varnish/default.vcl ---- change here
FROM:
backend default {
.host = "127.0.0.1";
.port = "8088";
}
TO:
backend default {
.host = "127.0.0.1";
.port = "8080";
}
restart openlitespeed
restart varnish
Everything is working fine now, i don't know if this is a bug but only with 8080 listener port worked for me. hope helps someone.
I was tryed to figure out error 503
With this tutorial i installed Varnish just fine until i got 503 error
1) wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
2) rpm -ivh epel-release-7-2.noarch.rpm
3) yum --enablerepo=epel install varnish -y
4) nano /etc/varnish/varnish.params ---- change here
VARNISH_LISTEN_PORT=80
5) nano /etc/varnish/default.vcl ---- change here
backend default {
.host = "127.0.0.1";
.port = "8088";
}
RESTART OPENLITESPEED
RESTART VARNISH
503 ERROR.
Solution was to change for default listener from lsws webadmin console port from 8088 to 8080
Also nano /etc/varnish/default.vcl ---- change here
FROM:
backend default {
.host = "127.0.0.1";
.port = "8088";
}
TO:
backend default {
.host = "127.0.0.1";
.port = "8080";
}
restart openlitespeed
restart varnish
Everything is working fine now, i don't know if this is a bug but only with 8080 listener port worked for me. hope helps someone.