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
0 answers

Varnish caching issue in the 'Add to cart' section ,,, Drupal,Nginx,Php-Fpm

We are running an ecommerce site configured by drupal with nginx & php-fpm. We also use memcached with mysql database.The service was running smoothly before we enabled the varnish caching. After enabling the varnish we are getting better…
0
votes
1 answer

Disable dynamic logging

Message from syslogd@dev01 at Jun 18 09:23:49 ... varnishd[8318]: no cookie Message from syslogd@dev01 at Jun 18 09:23:49 ... varnishd[8318]: no cookie Message from syslogd@dev01 at Jun 18 09:23:49 ... varnishd[8318]: no cookie I keep getting…
Sayaman
  • 187
  • 1
  • 11
0
votes
1 answer

How do you let a call through in varnish when a cookie "lang" is not set?

How do you let a call through in varnish when a cookie "lang" is not set? I want to let a call go through and not return the cache when the cookie "lang" is set and send the request to apache, how do I do this?
Sayaman
  • 187
  • 1
  • 11
0
votes
1 answer

Varnish cache in nginx reverse proxied WHM

We have our production server with latest cpanel version "96.0 (build 8)" and it is running nginx with reverse proxy enabled. See the netstat screenshot attached for detailed information. This server is currently in production and we are running two…
nisamudeen97
  • 111
  • 5
0
votes
0 answers

I can't install locales due to varnish cache

We're having locale issues on a server, but if I am to install locales it will uninstall varnish. It's Debian 8 and a test system, so nothing in production will be affected. Is there a way to install locales without uninstalling varnish, or are…
0
votes
1 answer

Varnish - How can I set TTL in response header?

I have not tried this before on Varnish. And I must admit that my last experience with Varnish was way back - version 2.1.5 days! I have set varnish 6.x as a simple/basic static http-cache. I have achieved most of what I wish to from this varnish,…
anup
  • 717
  • 4
  • 9
  • 19
0
votes
0 answers

Varnish (6.2.1) , Apache Version(Server version: Apache/2.4.41 (Ubuntu)) , HA-Proxy version 2.0.13-2

Need help in varnish why varnishlog command is not working it does not throws any response. root@r2m-web-prod:/etc/varnish# cat /lib/systemd/system/varnish.service [Unit] Description=Varnish HTTP…
Vinod
  • 1
  • 3
0
votes
1 answer

HA-Proxy errors in configuration file

Below is the configuration file for my haproxy in which i want to setup the varnish as backend & in frontend want to configure the Port-80 for http & for the port-443 for https global log /dev/log local0 log /dev/log local1 notice chroot…
Vinod
  • 1
  • 3
0
votes
1 answer

Hitch installation completed with insserv errors. Unable to start hitch

I am trying to install hitch to terminate the certificates for the Varnish reverse proxy on my Ubuntu 16.04 VPS. The installation completes with the following messages and Hitch service doesnt startup. sridhar@SastraTechnologies:~$ sudo apt install…
sridhar pandurangiah
  • 763
  • 2
  • 11
  • 29
0
votes
1 answer

Wrong client IP passed to Apache from Varnish and HAProxy

I have a setup where I am using Varnish/Hitch >> HAProxy >> Apache. It works except for a problem where the client IP address isn't being passed correctly to the backend Apache server. The Apache log shows the IP address of the machine HAProxy is…
Tuaris
  • 71
  • 2
  • 13
0
votes
1 answer

Why is varnish not restarting after I change port

Solved. See my solution below My system: 1. varnish 6 2.Centos 7 controlled on cwp pro panel, 3.webserver configuration: Nginx & Varnish & Apache ([Varnish Conf]) Additional Options: php-cgi/suphp, nginx/php-fpm, apache/php-fpm, proxy, varnish…
Legend
  • 1
  • 2
0
votes
1 answer

Hitch rate limiting without Varnish

Good morning, Is there a way to implement per-site and per-IP rate limiting on Hitch before the request reach Varnish? I tried to handle some DoS attack using Varnish rate limiting, but the DoS can overload the connection between Varnish and Hitch,…
0
votes
0 answers

Why does Varnish eat up all memory despite having both transient and malloc limits?

I'm using Varnish to cache static files in front of an Apache2 webserver. It's a mix of small files (CSS/JS/images) and large files (from 200 MB to 2 GB). I've limited both transient and malloc storage in the daemon to 8/12 GB…
Woodgnome
  • 203
  • 1
  • 8
0
votes
0 answers

varnish 6 behavior no-data POST

I'm facing a strange behavior on varnish 6, and I would need some advices to find out what's wrong. This occures on empty POST/PUT requests. Everything is working well on recipe platform but fails on production plateform with error : transfer closed…
Julien
  • 133
  • 4
0
votes
1 answer

Can't get Varnish to work on HTTPS

I have setup Varnish alongside with Apache, I'm not using Hitch or Pound just a simple proxy configuration with Apache mods. Apache listens on 8080 My Varnish configs: # Configuration file for varnish # # /etc/init.d/varnish expects the variables…
user476627