Page 1 of 2

Vestacp work fine with varnish?

Posted: Thu Mar 30, 2017 8:26 am
by kudouyuzi
Vestacp work fine with varnish?

https://varnish-cache.org/releases/index.html

Re: Vestacp work fine with varnish?

Posted: Thu Mar 30, 2017 8:33 am
by skurudo
In theory,
in practice we have not tested

Re: Vestacp work fine with varnish?

Posted: Thu Mar 30, 2017 8:34 am
by kudouyuzi
skurudo wrote:In theory,
in practice we have not tested
Ok, ill try

Re: Vestacp work fine with varnish?

Posted: Wed Apr 05, 2017 10:51 am
by vibol
VestaCP 0.9.8.17 works perfectly with Varnish v4.1 .. i'm using it ..

Re: Vestacp work fine with varnish?

Posted: Wed Apr 05, 2017 11:30 am
by skurudo
vibol, may be you can tell us more about your experience with Varnish (settings, deploy, install)? I think it'll be very useful.

Re: Vestacp work fine with varnish?

Posted: Thu Apr 06, 2017 6:43 am
by vibol
skurudo, i'm using Varnish for my wordpress site..

# Centos 6.8 x64 + VestaCP 0.9.8.17
# Install Wordpress + Varnish Caching plugin by Razvan Stanga (you can get varnish config template with this)
# i use this guide http://www.servermom.org/varnish-cache-vesta-cp/

# i'm using Varnish v4.1

Code: Select all

rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-4.1.el6.rpm

Re: Vestacp work fine with varnish?

Posted: Fri Nov 03, 2017 8:54 am
by mephivio
Hi
Have you test the new release 5 ?

Re: Vestacp work fine with varnish?

Posted: Tue Jul 02, 2019 9:01 pm
by verus001
It works for me with http but how can I make it work with HTTPS?
thanks, Ph.

Re: Vestacp work fine with varnish?

Posted: Wed Jul 03, 2019 7:02 pm
by skamasle
verus001 wrote:
Tue Jul 02, 2019 9:01 pm
It works for me with http but how can I make it work with HTTPS?
thanks, Ph.
Varnish not support it as I know

If you what varnish and SSL in same server you need make it in this way:

httpd -> varnish -> nginx

Or
varnish-> nginx

Varnish listen in 80, nginx in 443 and apache in 8080

So varnish will get all request in 80 and send it to 8080, nginx will get request in 443 with ssl and send it to varnish, varnish ask again apache and then caching and return to nginx.

I never see varnish in 443 with SSL, but I just run inall server varnish 4 not know if varnish 5 have some fixes for this.

But if you what integrate it with vesta the easy way is nginx -> varnish -> apache

Integration is very easy, just modify some template values

Re: Vestacp work fine with varnish?

Posted: Thu Mar 04, 2021 4:55 pm
by websystems
skamasle wrote:
Wed Jul 03, 2019 7:02 pm
Integration is very easy, just modify some template values
Do you mind sharing some more details?