Questions tagged [varnish]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

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 ...
0
votes
0answers
24 views

Magento 2 Varnish caching session from another user - add to cart

When I add an item to cart it will also show a second item, I have previously added from a different device. If I bypass varnish cache, cart seems to work ok. Guess I am missing a setting about ...
1
vote
1answer
55 views

Magento 2 with Nginx and Varnish - How to serve webp images

I am using the following, trying to serve webp images from Magento using Nginx and Varnish as caching. Added to /etc/nginx/mime.types image/webp webp; Added to main nginx.conf http { map $...
0
votes
1answer
26 views

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 ...
0
votes
0answers
13 views

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 ...
0
votes
1answer
48 views

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/...
0
votes
1answer
37 views

Varnish 6.x — stale-if-error implementation

I was investigating if varnish can support Stale content as described in RFC 5861. To achieve this stale-while-revalidate and stale-if-error cache directives I found a sample implementation for ...
1
vote
1answer
34 views

Varnish 'client.ip' not available in method 'vcl_backend_response'

Due to server upgrade we had to migrate from Varnish 3 to Varnish 4. With little experience with the server I have able to update the setup and variables needed for the newer version but unfortunately ...
0
votes
1answer
15 views

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....
2
votes
1answer
187 views

Unable to open Port 8080 for Varnish to access Nginx

I am setting up Varnish and Hitch to serve incomming HTTP and HTTPS requests for my Drupal Website. The Drupal website runs on Nginx on a Digital Ocean VPS and was listening on port 80 and 443. I have ...
0
votes
1answer
132 views

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. ...
0
votes
1answer
313 views

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/...
1
vote
1answer
135 views

Can Varnish automatically determine which storage medium should be used to cache an object?

For instance, I have an incredibly slow and archaic backend provider with requests regularly taking in the tens of seconds. We also have a machine with moderate memory and large storage. Ideally, I'...
0
votes
1answer
102 views

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 ...
0
votes
0answers
169 views

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 ...
0
votes
0answers
52 views

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 ...
0
votes
1answer
196 views

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 ...
0
votes
0answers
51 views

What causes varnish to dump source code to the log?

I notice when I look at /var/log/messages that starting Varnish is dumping source code. It starts with: Sep 18 15:43:16 shop3 systemd: Starting Varnish a high-perfomance HTTP accelerator... Sep 18 15:...
0
votes
1answer
24 views

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 ...
1
vote
1answer
283 views

Varnish crashes on bigger files

Overall, I serve very small files. Think about images and small videos. Caching these with Varnish is like a breeze and doesn't give me any issues. The problem I am having, is when I am downloading a ...
0
votes
1answer
40 views

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 ...
0
votes
0answers
75 views

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 ...
0
votes
1answer
602 views

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 ...
1
vote
1answer
606 views

What is .max_connections parameter in varnish vcl and how to caculate this value for backend nginx server

I have seen .max_connections parameter in varnish default.vcl and by seraching in web, found the artile below .max_connections: how many connections you authorize Varnish to open to this backend. ...
0
votes
1answer
191 views

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 ...
0
votes
1answer
224 views

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: https://github....
0
votes
1answer
126 views

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 ...
1
vote
1answer
1k views

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 :...
1
vote
0answers
2k views

Intermittent proxy error in Apache: “Partial results are valid but processing is incomplete” with “AH01110: error reading response”

I'm using Apache 2.4.43 on CentOS 7.8 with Varnish 6 and PHP-FPM to serve a Magento 2 website. Varnish listens on port 80. Apache listens on 8080 to serve content to Varnish, and also port 443 which ...
1
vote
1answer
182 views

Nginx with Varnish : all listen directive pointing to 808* ports but nginx still listen to 80

I'm running instances of Symfony or Drupal websites on two Debian servers, with Nginx listening to 443, Varnish listening to 80 and passing to nginx on listening custom ports 80** for each vhost. ...
0
votes
2answers
122 views

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 ...
0
votes
0answers
89 views

Does mod_pagespeed PURGE downstream when its cache purges?

Does google mod_pagespeed send PURGE requests to configured downstream reverse proxies when an item in the mod_pagespeed cache is purged? I'm running Debian 10 with varnish 6 (a varnish 4.0 vcl) ...
0
votes
1answer
378 views

Traffic flow of Varnish, Hitch, and HAProxy

There are many questions and answers here about how to best order the flow of traffic between Varnish and HAProxy to a backend web server. Many of these posts are very old and recommend that Varnish ...
2
votes
1answer
1k views

Php+Nginx+Varnish on docker-compose, ubuntu18

!Important. SOLUTION FOUND. Everything below is working fine for me. And this is almost the only case when you may copy solution from the question. For it read "My Configuration" section Main ...
1
vote
1answer
307 views

Does Varnish support unix domain socket files?

Does varnish support unix socket files? I'd like to accelerate my website by adding a varnish reverse proxy (HTTP accelerator/cache) before my web server. My web server's virtual host is currently ...
0
votes
1answer
247 views

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. ...
0
votes
1answer
995 views

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) ...
0
votes
1answer
30 views

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: ...
0
votes
1answer
121 views

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 { # ...
0
votes
1answer
148 views

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....
0
votes
1answer
120 views

Caching alternatives for https [closed]

I've been using varnish reverse proxy for a few websites and it's a great alternative. However it supports only http and now that the sites want to implement https I don't have another alternative. ...
0
votes
1answer
324 views

How to use nginx as reverse proxy send all requests to varnish

I have a centos 8 and varnish is on port 80 connecting with apache on port 8080 bellow is my nginx config. user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid; # ...
0
votes
1answer
753 views

Varnish ERR_TOO_MANY_REDIRECTS

I use Nginx > Varnish > Apache, php-fpm in Centos WebPanel. ERR_TOO_MANY_REDIRECTS appears for the Wordpress homepage only and it goes away and then comes back on my site. This periodical ...
0
votes
1answer
41 views

Getting http traffic to redirect to https

I'm trying to figure out how to redirect http traffic to https. I running apache2 with varnish. Someone more knowledgeable than me has set this up for me on other websites. I've set up a new site to ...
1
vote
0answers
51 views

Varnish: what's the difference between Execstart malloc and DAEMON_OPTS malloc?

I'm using Varnish 4.x. I've read around a little but I can't understand what's the difference between the 2. Are they the same thing? Lets take a concrete example. I have a 16GB server. Of those ...
0
votes
0answers
307 views

Nginx+varnish (SSL termination by Nginx) shows 502 bad gateway (the website is not using wordpress) [duplicate]

I configured nginx as SSL terminator for varnish according to this guide: https://www.linode.com/docs/websites/varnish/use-varnish-and-nginx-to-serve-wordpress-over-ssl-and-http-on-debian-8/ I need ...
1
vote
1answer
310 views

How to use varnish with nginx as SSL terminator and with http to https forwarding with nginx

I have installed varnish and nginx and secured my website with lets encrypt SSL. I tested varnish against nginx cgi cache and i have found out that varnish is a bit faster in my use case (wordpress). ...
1
vote
1answer
30 views

How to use varnish with nginx as SSL terminator and with http to https forwarding

I have installed varnish and nginx and secured my website with lets encrypt SSL. I tested varnish against nginx cgi cache and i have found out that varnish is a bit faster in my use case (wordpress). ...
2
votes
1answer
620 views

Varnish cache with Nginx SSL termination

How can I use varnish cache with nginx SSL termination for my SSL-Only (Https only) website? I use ubuntu 18.04 and I am currently running a wordpress site on my server.
0
votes
1answer
176 views

Varnish not caching (MISS)

We have a varnish server in front of a few websites running Nginx/CraftCMS. All the websites cache as expected, except one. Over the past week we've read every tutorial, checked every answer and must ...

1
2 3 4 5
18