We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
varnish-cache.org
Re: varnish-cache.org
watchopolis wrote:Thanks Ghulam
you are welcome sir
Re: varnish-cache.org
hi !
i followed after what you explaiend (quote above) :
and after i installed VestaCP , i did the change at default.vcl to (example:)
5.86.210.99
port: 8080
also /home/test//conf/web/nginx.conf to :
line 7 and 22 like this :
proxy_pass http://5.86.210.99:6081;
i did restart to NGINX + VARNISH
i got OK from both (nginx +varnish)
the problem is i entered my ip in this site http://www.isvarnishworking.com/ to check if it realy work and is say : NOPE
how this possible. what worng here ?
,
i followed after what you explaiend (quote above) :
and after i installed VestaCP , i did the change at default.vcl to (example:)
5.86.210.99
port: 8080
also /home/test//conf/web/nginx.conf to :
line 7 and 22 like this :
proxy_pass http://5.86.210.99:6081;
i did restart to NGINX + VARNISH
i got OK from both (nginx +varnish)
the problem is i entered my ip in this site http://www.isvarnishworking.com/ to check if it realy work and is say : NOPE
how this possible. what worng here ?
,
simple after instaation
1 = yum install varnish
then we need to edit file
nano /etc/varnish/default.vcl
where is 127.0.0.1 chnage into to server main ip or server main link example abc.example.com
and port 80 to 8080
next which domain u want get varnish cache fasilty
nano /home/username//conf/web/nginx.conf
edit this file
line nomber 7
where is any ip just change into
which ip u gave in file /etc/varnish/default.vcl
both ip must be same
and port change into 6081
example which i have
proxy_pass http://abc.example.com:6081;
also same file line nomber 22 chnage t same like line 7
after this restart Both varnisha and Nginx
for each domain u have to edit nginx for each domain
for check does vvarnish working
visist to web
http://www.isvarnishworking.com/
gave ur link
and u ll find result with varnish
Regards Ghulam
Re: varnish-cache.org
Okay i try this and it works on a single ip server with Varnish 4.0.2 64 bit
idea : Varnish -> NGINX -> Apache
Varnish listen on port 80, follows data to port 8082 (Nginx) then follows to port 8080 (Apache2)
1/ vi /etc/default/varnish
-> indicate port 80
change nothing more except perhaps the RAM you allocate
2/ vi /etc/nginx/conf.d/your public ip.conf
For each ip, change port 80 to port 8082
3/ vi /etc/varnish/default.vcl
sample :
backend default {
.host = "your public ip address";
.port = "8082";
.connect_timeout = 1s;
.first_byte_timeout = 30s;
}
4) Modify each webspace Nginx config
for instance /home/test//conf/web/nginx.conf
-> only this or these lines
listen your public ip:8082;
5) Modify Vesta (optional)
/usr/local/vesta/conf/vesta.conf
Proxy_port:8082
it works !!!!!
Depending on your app platform (Wordpress, Joomla etc..) you can find several default.vcl templates with optimization parameters on the web
for my side, i've some troubles with a VPS server using 2 ip .... content is sometime mixed or bad
i try to use it with Prestashop 1.6 but it's very complex to find a successfuly integration on the web
So for me, i can't get Varnish in a production server ... not yet ....
Cheers,
J
idea : Varnish -> NGINX -> Apache
Varnish listen on port 80, follows data to port 8082 (Nginx) then follows to port 8080 (Apache2)
1/ vi /etc/default/varnish
-> indicate port 80
change nothing more except perhaps the RAM you allocate
2/ vi /etc/nginx/conf.d/your public ip.conf
For each ip, change port 80 to port 8082
3/ vi /etc/varnish/default.vcl
sample :
backend default {
.host = "your public ip address";
.port = "8082";
.connect_timeout = 1s;
.first_byte_timeout = 30s;
}
4) Modify each webspace Nginx config
for instance /home/test//conf/web/nginx.conf
-> only this or these lines
listen your public ip:8082;
5) Modify Vesta (optional)
/usr/local/vesta/conf/vesta.conf
Proxy_port:8082
it works !!!!!
Depending on your app platform (Wordpress, Joomla etc..) you can find several default.vcl templates with optimization parameters on the web
for my side, i've some troubles with a VPS server using 2 ip .... content is sometime mixed or bad
i try to use it with Prestashop 1.6 but it's very complex to find a successfuly integration on the web
So for me, i can't get Varnish in a production server ... not yet ....
Cheers,
J