Questions tagged [varnish]

Varnish is a high-performance reverse proxy and load-balancer package for Linux/Unix systems.

Varnish is primarily a caching reverse proxy, but also exhibits load-balancing and backend checking mechanisms and is very widely used on high traffic websites.

Varnish was designed from the ground to be a high performance reverse caching proxy and to not compete with the operating system on managing resources like memory. Most recent versions of Varnish support storing cache on memory or disk, and serving old content in case of backend fail (saint mode), among other features.

Varnish is written by Poul-Henning Kamp (PHK), and his Architect Notes are available about varnish design. PHK is also a well known FreeBSD kernel developer and mantainer.

937 questions
0
votes
1 answer

Backend health checking with Apache 2.2 (possible?)

We have a couple servers running Apache 2.2 and Weblogic instances at work. I am wondering if Apache with mod_proxy or mod_weblogic can do backend health checking with focus on response times? Can Apache 2.2 switch to another instance when response…
user55483
0
votes
1 answer

How to generate ETag for HTML (full page) content in Varnish?

I want to configure Varnish to generate ETag of HTML requested content (maybe with MD5 of HTML and "Vary" headers) and to deal with 304 and If-None-Match headers. Is this possible with configuration or vlc scripting?
damian
  • 103
  • 2
  • 5
0
votes
1 answer

caching server in front of apache tomcat

We have a website and it's current architecture is as follows: There's squid in the front which caches images. Then there is apache httpd with mod_rewrite enabled. httpd then talks to apache tomcat(with mod_jk) for dynamic requests and servers…
letronje
  • 429
  • 1
  • 6
  • 17
0
votes
1 answer

varnish cache - how to exclude an element (i.e iframe ) from cache

we cache our web site with varnish. But we want to exclude some html element (i.e. iframes) from cache. How can we configure VLC as we want? Thank you all already now.
Kerberos
  • 123
  • 4
0
votes
2 answers

When should I go for Varnish / Nginx or Lighttd?

I am fairly new to using any of these servers, so it will really help in knowing what specific features are most optimized of any of these three webservers. And in what scenarios should I choose one over the other?
phoenix24
  • 179
  • 1
  • 5
0
votes
2 answers

Varnish configuration, NamevirtualHosts, and IP Forwarding

I currently have a bunch of NameVirtualHost based websites, load balanced between 3 apache2 servers using ldirectord. I would like to insert varnish as a reverse-web-proxy between ldirectord and apache in the following way: a request comes in to…
Brent
  • 22,857
  • 19
  • 70
  • 102
0
votes
1 answer

how can i cahe one more web site on same backend server (web server) with varnish?

i have one web server which is IIS that is back on varnish. there are more web sites on ISS. there are all web sites header's on IIS and all web sites publish from port 80. can i cache all web site by varnish like below code;backend…
Kerberos
  • 123
  • 4
0
votes
1 answer

How to setup Nginx and Varnish reverse proxy for Node.js?

My website on the Astro framework (Node.js SSR adapter) is deployed on 1 shared-cpu-1x@256MB fly.io instance in the Amsterdam region, which automatically handling gzip, TSL termination. Initial setup includes Varnish on port 80 -> Nginx 8080 ->…
Predaytor
  • 3
  • 2
0
votes
2 answers

How to install varnish cache in Amazon Linux 2023?

I want to install varnish cache 6 in Amazon Linux 2023. Sudo dnf install varnish Above command returns no packages found message. Tried with direct rpm package installation but it failed to resolve so many dependencies. Even tried with packagecloud…
Duke
  • 123
  • 1
  • 5
0
votes
1 answer

What does this block of varnish code do?

I have this code in varnish config and not sure what it do! This config will cache or not my client requests? what is wrong with it? sub vcl_backend_response { if (beresp.status != 200) { return (pass); } set…
0
votes
1 answer

Configure varnish with cloudflare along with SSL terminator

Our present scenario: Present Scenario Now, we are planning to create a cache server between the user and the site. Proposed Plan As per my understanding, cache servers can't work with HTTPs data. So, we have to convert the data from https to http.…
0
votes
1 answer

Configure Cloudflare with varnish

We want to configure the varnish in the following way: Local IP --> Varnish --> Cloudflare --> AWS Is it possible?
0
votes
1 answer

How to force Varnish stale whole content

We have a website which is fairly large. we update content every week but it is fine to serve stale for the first visit after updating backend content. Therefore we dont want to ban or purge whole cached content in varnish which make whole websites…
Tung
  • 1
  • 1
0
votes
2 answers

Varnish 6 bans_persisted_bytes ballooning, but memory usage is fine

In a Varnish 6 server I'm responsible for, there are short bursts of very many bans. These are the result of an application I am not able to modify. This has caused RAM usage to very quickly balloon out of control, but I have been able to fix that…
Toon Spin
  • 13
  • 3
0
votes
1 answer

Varnish - detach and attach cookies

First of all, I'm asking to find out whether this is possible or not. So, I can see Varnish will not cache objects if it has cookies. I'm thinking about when an incoming request has cookies, Varnish will store them in variables and remove those…
Budianto IP
  • 141
  • 6