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

Varnish: call vcl_pipe conditionally

It is my understanding, from looking at the Varnish pipeline chart, that vcl_pipe can be only called from vcl_recv. I am setting up a VCL to serve binary resources from a back end contingent on some conditions, including access control. The way I…
user3758232
  • 109
  • 5
0
votes
1 answer

Fast access to a hash set in Varnish

I am developing a Varnish pipeline that serves a mix of public and restricted resources. Since access to public resources makes up the vast majority (>99.9%) of the traffic, I want to create shortcuts to bypass auth token validation and other such…
user3758232
  • 109
  • 5
0
votes
0 answers

Error- Cannot find libev headers CentOS 6 Hitch install Varnish

CentOS 6 I'm trying to install hitch to run with Varnish for HTTPS and one of the packages it needs is libev headers - hitch is not in the latest EPEL Repo as I keep being informed when trying to install so I managed to download extract and trying…
jt9489
  • 11
  • 1
  • 5
0
votes
1 answer

Linux error creating temporary file /var/tmp/

I'm using centos 6 - recently I am getting this error anything I want to install anything on server for example with varnish - var/tmp is empty and has root:root as owner i have checked with 777 permission on var/tmp directory but still same error …
jt9489
  • 11
  • 1
  • 5
0
votes
1 answer

Scope and utility of Varnish bans

I need to invalidate the cache of a set of URLs related to a resource that was either deleted/unpublished, or updated. E.g if my resource UUID is 1234abcd I want to invalidate all its cached derivatives under /resource/1234abcd/*. I understand that…
user3758232
  • 109
  • 5
0
votes
1 answer

Varnish PURGE client.ip docker-compose

I'm trying to configure varnish for Magento2. Question: I'm unable to configure PURGE varnish cache. Here is my build: https://github.com/zhartaunik/magento2-docker Varnish settings:…
zhartaunik
  • 132
  • 1
  • 7
0
votes
1 answer

varnish redirecting to backend url

Im running Magento in 192.169.1.250 (no ssl) URL - http://192.168.1.250:80 and varnish + nginx (ssl offloading) in 192.168.1.9 frontend URL - https://192.168.1.9:80 varnish 127.0.0.1:6081 Used the default varnish default.vcl file generated by…
0
votes
1 answer

Varnish Error 503 Backend fetch failed Only on Home page (Magento 2.3.5-p1)

I am a bit confused actually very much confused right not regarding varnish and configuring it. Currently I am running Magento 2 on Nginx/PHP-FPM and only SSL i.e. I am redirecting user from :80 to :443 as I only want them to access over SSL. Also…
nix
  • 53
  • 3
  • 13
0
votes
2 answers

varnish delivers randomly empty pages

We ran into a problem with our setup where Varnish started to deliver empty pages. We terminate ssl before the varnish and use a apache2.4+php-fpm over fcgi setup behind it. At first glance the pages seemed to be only in the legacy app, where we are…
scones
  • 232
  • 3
  • 11
0
votes
1 answer

Securing access to certain pages/directories with Apache behind a Varnish cache?

I have a public website with some URLs/directories which are for private/internal use only. These private areas can only be accessed via certain IP addresses or with a known username/password. Currently I achieve this via .htaccess files like…
WackGet
  • 217
  • 4
  • 12
0
votes
1 answer

Varnish is removing the X-Forwarded-For header when used with Apache ProxyPass

I'm using Varnish 4 and Apache's ProxyPass directive to try to cache content on a HTTPS website (running Magento e-commerce software). Varnish listens on port 80, and Apache on port 8080 (for HTTP) and 443 (for HTTPS). In my SSL vhost, I have a…
WackGet
  • 217
  • 4
  • 12
0
votes
1 answer

How to redirect ip servername to main site

Many sites have server name ip in their a records. Showing duplicate content using 302 redirect on many domain names How to make all redirect to only website server is actually using. Config: Varnish port 80 HTTPD port 8080 443 NGINX PROXY
Jack Duldi
  • 19
  • 9
0
votes
1 answer

My varnish devicedetect.vcl is not working site no longer responsive

default.vcl # Default backend definition. Set this to point to your content server. backend default { .host = "127.0.0.1"; .port = "8080"; } sub vcl_recv { # Set the X-Forwarded-For header so the backend can…
Jack Duldi
  • 19
  • 9
0
votes
1 answer

I have a lot of traffic and only 1 server best config for nginx/varnish/apache configuration

I have a lot of traffic and only 1 server can I get some help with configuration Nginx.conf config: # For more information on configuration, see: # * Official English Documentation: http://nginx.org/en/docs/ # * Official Russian Documentation:…
Jack Duldi
  • 19
  • 9
0
votes
1 answer

Recommendations/Advice for Web Caching with SSL

I've been using Varnish Cache for a few websites. However, I need advice for implementing HTTPS. I am open to alternatives to Varnish Cache. The configuration of Varnish is relatively complex, so perhaps a less advanced alternative would be better…
Albert
  • 171
  • 2
  • 8