Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section 3rd Party Software
  • Search

varnish-cache.org

Section with additional software for Vesta
Post Reply
  • Print view
Advanced search
13 posts
  • Previous
  • 1
  • 2
Ghulam
Posts: 2
Joined: Wed Mar 12, 2014 6:19 pm

Re: varnish-cache.org
  • Quote

Post by Ghulam » Sun Jul 06, 2014 11:34 am

watchopolis wrote:Thanks Ghulam

you are welcome sir
Top

tomer628
Posts: 36
Joined: Fri Dec 26, 2014 2:17 pm

Re: varnish-cache.org
  • Quote

Post by tomer628 » Fri Dec 26, 2014 2:27 pm

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 ?
,

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
Top

mephivio
Posts: 198
Joined: Thu Mar 27, 2014 7:35 am

Os: Debian 8x
Web: nginx + php-fpm
Re: varnish-cache.org
  • Quote

Post by mephivio » Tue Dec 30, 2014 1:29 pm

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
Top


Post Reply
  • Print view

13 posts
  • Previous
  • 1
  • 2

Return to “3rd Party Software”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password