Questions tagged [varnish]

Varnish is an open source reverse HTTP proxy with extensive caching abilities, i.e. a web accelerator. It is frequently used in front of websites to cache webpages in memory.

This tag is for questions about Varnish Cache. Varnish cache is a reverse http proxy that caches, i.e. a web accelerator. It is open source software used to speed up websites.

2066 questions
0
votes
1 answer

Pound + Varnish + Apache - Pound hanging

I have an issue with my current configuration. I'm trying to stress test my platform prior to going live and I found something pretty concerning. Pound conf: User "pound" Group "pound" Control "/var/lib/pound/pound.cfg" #TimeOut 150 LogLevel…
Atheryl
  • 295
  • 4
  • 11
0
votes
1 answer

varnish param.set resets to previous value after service restart

I'm trying to fine tune varnish (4.0.4) with varnishadm (on RHEL). I set the values with param.set, do param.show & everything looks ok. But after I restart the varnish service the params are back to their previous values. Is there a way to somehow…
GTXBxaKgCANmT9D9
  • 276
  • 4
  • 12
0
votes
0 answers

cookies and varnish- lots of headache

hi this is my varnish log for the main website page https://pastebin.com/RxsPKe7z here is the hash things on my * vcl,it shows a good hit but why Im getting the hash returns? -I have other pages that also sets WordPress logged in cookie for…
ahmad
  • 3
  • 3
0
votes
1 answer

Purge varnish cache based on request header values

I am caching multiple copies of an object based on certain header values in the request using vcl hash. How do I purge them all at once?
manu4543
  • 508
  • 1
  • 8
  • 15
0
votes
1 answer

varnish nginx proxy protocol

I have this install from this guide https://www.linode.com/docs/websites/varnish/use-varnish-and-nginx-to-serve-wordpress-over-ssl-and-http-on-debian-8 is there any advantage for using proxoy protocol? from…
ahmad
  • 3
  • 3
0
votes
0 answers

why the HIT header are not shown on JS/CSS

I have this VCL here https://pastebin.com/RPJvAqZ1 but the varnish Hits are not showing for the JS/CSS see the headers in the drobpox folder at the bottom (*) it is a classic/woocomerce/WordPress vcl I just added: if (req.http.cookie ~…
ahmad
  • 3
  • 3
0
votes
1 answer

IP address conflict with CloudFront

I have a web stack which consists of CloudFront->Origin->Varnish->Apache and am running into some issues with the way IP addresses are being modified on the way through. One of our requirements is to do some work based on the users geographic…
Andrew Rutter
  • 1,257
  • 2
  • 18
  • 34
0
votes
1 answer

Is it possible from VCL to invoke a module function after a request has been processed?

Ideally, I'd like to do something like this: sub vcl_after_response_is_sent { mymod.f(req, resp); } But I don't see any builtin subroutine that could let you do this. Is there any other way it might be accomplished?
Ryan Burn
  • 2,126
  • 1
  • 14
  • 35
0
votes
1 answer

checking backend health for more than 2 web servers in varnish 4

have a varnish server with 3 backends. all backends are apache. everything is ok and the varnish server caches everything I need, and the connections are OK. I wnat to monitor the health of web servers. and in case of a failure, varnish does not…
0
votes
0 answers

Varnish dont work when I call the Vhost

I have varnish running fine when I call it from ip:port (port = 6081 ) But when I try to call it from its Vhost (exp.example) i have the website running without varnish! My default.vlc backend tcook { .host = "127.0.0.1"; .port =…
Rezgui
  • 51
  • 1
0
votes
1 answer

Convert Varnish VCL from 3 to 5.1.2 version

I've this Varnish default VCL that is working fine with version 3.x. However, now it's time to upgrade. How can we upgrade below varnish vcl to latest version 5.1.2, could anyone assist and it might help many others too. backend default { .host =…
0
votes
1 answer

Varnish basic config file throws "VCL compilation failed" when I try to use std.syslog. Why?

I have a simple VCL file as follows: vcl 4.0; import std; backend default { .host = "127.0.0.1"; .port = "3333"; } sub vcl_recv { std.log("req.host: "+req.host); } sub vcl_backend_response { } sub vcl_deliver { } When I try to…
tadasajon
  • 14,276
  • 29
  • 92
  • 144
0
votes
1 answer

Varnish Not configured?

I've installed Varnish on a standalone instance (EC2) and set it to fetch data from a different instance (EC2 as well on the same subnet), all trafiic is pointing to the Varnish instance, site loads and everything seems to be OK, the problem is that…
Broshi
  • 3,334
  • 5
  • 37
  • 52
0
votes
1 answer

Varnish always 301 redirecting

I've got an apache running wordpress on port 90. I've put a varnish cache in front of it and am running varnish on port 80. I'm using the 4.0 vcl from here:…
0
votes
1 answer

Varnish: ignore some cache cookies for hash computation

Situation:: Varnish needs to cache even in the presence of cookies on the request. The request may contain N arbitrary cookies of which certain known cookies must not form part of the cache key. The arbitrary cookies don't contain any user…
hedleyroos
  • 320
  • 3
  • 9
1 2 3
99
100