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.
0
votes
0answers
10 views
How to restart Varnish service on another Auto scaling group after Code deploy
Our Application architecture contain two auto scaling group
Varnish instances
App instance
We use AWS Code deploy to deploy to App instance , after every deployment we need to restart or run some ...
0
votes
0answers
16 views
VestaCP with Nginx and Apache backend > Install Varnish with SSL termination
Current Situation:
OS: Ubuntu 18.04
Clean install of VestaCP with NGinx as main web server and Apache as proxy.
What I want to get:
Install Varnish 5.2 (current version installed through default ...
1
vote
1answer
50 views
Setting up Varnish on CentOS 7, Nginx and PHP-FPM with SSL
I've not used Varnish before but I need to install it on our Magento site to help speed things up.
I've found lots of articles on how to set up Varnish on Centos 7, PHP-FPM etc but none that runs ...
0
votes
0answers
17 views
Vanish 6.1.1 vs 6.0.1 - which should you use? [closed]
I see varnish 6.0.2 listed as LTS but there is version 6.1.1. Shouldn't I be using 6.1.1 for the latest release ? Is v6.1.1 fully supported ? Won't 6.1.1 eventually replace 6.0.x in the future ?
...
0
votes
1answer
21 views
unset Authorization header in varnish but also send the header to backend
I want to remove the Authorization header in varnish vcl but also needs this header to be sent to back-end as well.
sub vcl_recv {
unset req.http.Authorization;
}
1
vote
0answers
32 views
Varnish C - Header setting using VRT_SetHdr method
For a specific use case, I needed to write a C routine inside vcl script. There I needed to set the Location header dynamically. After going through varnish tutorial and few stack overflow (I would ...
0
votes
1answer
54 views
How to call Go program from varnish subroutine
Say "I'm running varnish and I want to call Go code from varnish subroutines". that will run for every vcl_recv subroutine?
0
votes
1answer
23 views
Varnish Multi-Site configuration with varying caching
I have 3 groups of API's
Each of the 3 has a unique requirement for caching.
So group 1 can be cached "normally" as in just the URL matters.
Group 2 requires that an auth header is passed, so would ...
0
votes
1answer
48 views
How to import Varnishlog file into Elasticsearch using Filebeat?
I would to import a "varnishcsa.log" into Elasticsearch to, at the end, discover/visualize data with Kibana.
I am begining to use the Elastic Stack : Elasticsearch > Filebeat > Kibana.
There is no ...
0
votes
0answers
14 views
varnish with libvmod-digest for AWS s3
I have varnish running in front of S3.
Although I can't find the doc, I installed varnish and https://github.com/varnish/libvmod-digest from the source to enable the libmod-digest
Now I need to ...
0
votes
0answers
11 views
Wordpress Payment Plugin Site-Wide Cookie Preventing Varnish Edge Caching Through Pantheon
Running in circles trying to leverage Pantheon's CDN/Varnish edge caching.
Have a Wordpress site uses the WP Simple Pay Lite plugin to process Stripe transactions on one page. That plugin creates a ...
0
votes
1answer
33 views
How can I leverage browser cache and .htaccess are not cleared by my varnish configuration?
I want to leverage browser caching for the following cacheable resources: JS/TTF/ICO/jpeg/png/css/...
I'm testing using GMETRIX, but I keep failing on LEVERAGE browser cache.
I think some of the ...
0
votes
0answers
21 views
Detect what error caused varnish to enter vcl_backend_error
What I'm trying to do is give different error responses based on what caused the error. Basically I'm wanting to give my default error response, but I want to give a different error response if the ...
0
votes
0answers
19 views
Is it possible to set a different grace period for different paths in Varnish?
I am using Varnish behind Haproxy, and cache times (ttl) are decided from backend using appropriate headers. On the Varnish side, I want to set different grace periods for individual paths, because ...
0
votes
0answers
24 views
how to get response body in varnish 6
I am currently working on a project based on varnish 6..
we write vcl and vmod. But the project needs to check the response body. How can I get the response body in vmod with a C function? I need ...
0
votes
1answer
20 views
Varnish caches a response that has been generated by vcl_backend_error
We're running a setup with Varnish caching backend requests to multiple backend instances. This is handled using the Director VMOD. When a new deploy of new code is done on the backend servers, they ...
0
votes
0answers
115 views
503 Backend fetch failed on magento 2.3.0 site with varnish cache
http://tyanabelle.com returns 503 Backend fetch failed but the https counter part DOES work though.
I'm using apache v2.4.37
and varnish cache,
and the website is a magento 2.3.0 vanilla website,
...
0
votes
0answers
21 views
Can I enable HTTP/2 for specific server blocks (virtual hosts) only, on hitch?
I have several virtual hosts on hitch.
Can I enable HTTP/2 for specific virtual hosts only on hitch?
When I enable HTTP/2 for a virtual host, in hitch.conf like:
alpn-protos = "h2, http/1.1"
write-...
0
votes
0answers
16 views
Error 503 with Varnish turned off. what to do?
Such a problem, when updating posts (powered by Wordpress), the following message appears:
Error 503 first byte timeout first byte timeout. Varnish server
Services on the server with it do not fall, ...
-1
votes
2answers
116 views
Configure varnish with apache on ubuntu 18.04
I have been trying to install Varnish on ubuntu 18.04. I have used this article https://hostadvice.com/how-to/how-to-setup-varnish-http-cache-on-an-ubuntu-18-04-vps-or-dedicated-server/,
after I run ...
0
votes
1answer
45 views
configure the varnish shared cache
We have enabled Auto-scaling for our web application, we are using Varnish as caching layer & it will store everything into RAM memory.
But when the new server comes up it is again fetching the ...
4
votes
2answers
71 views
How to cache an object on Varnish, but tell the client not the cache it
I am caching the product details page on Varnish, and then I purge the cache from the backend server whenever the product is updated. I want my clients to never cache this page on their side, but ...
0
votes
0answers
40 views
Apache add Cache-Control headers with multiple conditions
Trying to get headers for prestashop to work behind a reverse proxy (respecting conventions)
I got to this point
<IfModule mod_headers.c>
Header merge Cache-Control "s-maxage=86400, stale-...
0
votes
0answers
29 views
Varnish Missing Cache For No Reason
Below is my VCL.
I have varnish all setup and working. I override my TTLs to 1 day. I have a high traffic site with a number of different domains. During the day when traffic is high caches last for ...
0
votes
0answers
17 views
Varnish Wordpress SSL Apache
i'm using wordpress, and i need web page accelerator.
I have SSL and i've decided to install Varnish.
Configurations looks like that
Request -> Apache (:443) -> Varnish (:80) -> Apache (:8080).
...
0
votes
1answer
41 views
Can not remove header “vary: user agent”
I am trying to figure out why my Magento 2.2.6 shop is showing the header:
vary: Accept-Encoding,User-Agent
The problem is that the "User-Agent" makes my cache not working in a good way.
My shop is ...
0
votes
1answer
53 views
Varnish Backend Handling
I am facing a rather tricky issue, where it appears that the varnish is closing the backend connection without waiting for a respones from the backend.
We are using Nginx to serve static content ...
0
votes
2answers
125 views
Varnish + Wordpress + Nginx - Prevent no-store no-cache must-revalidate headers
We launched a web app about a week ago, experienced a heavy load spike and were down for almost 2 hours. I won't mention the company by name, but we were leaning on them for recommendations to prevent ...
0
votes
1answer
28 views
How to fix unterminated short string error in Varnish VCL while configuring Fastly CDN
I am trying to setup token based authentication on Fastly CDN with Varnish VCL and using this sample VCL snippet to generate and validate JWT tokens here -
sub vcl_recv {
#FASTLY recv
if (...
0
votes
1answer
37 views
Configure Varnish 4 multiple domains different ports
I got this to load both the websites, however I am unable to log into both wordpress websites.
backend websiteone {
.host = "127.0.0.1";
.port = "7070";
}
backend websitetwo {
.host = "...
0
votes
0answers
21 views
Varnish hotlink protection with multiple referers
I have been trying to follow this: https://varnish-cache.org/trac/wiki/VCLExampleAvoidHotlinking
And include multiple referers such as:
if (req.http.host == "example.com" &&
req.url ~ "^/...
0
votes
1answer
32 views
Use varnish cache for magento 2 and prestashop on one server
I want to use varnish cache for magento 2 and prestashop on one server. I ask my friend but he told me can't do it. Because they have different configure. Can i install vanish cache and use it for ...
0
votes
1answer
16 views
Exclude safari browser from Varnish caching
Any suggestions how we can exclude devices that use Safari browser from using our Varnish caching? Excluding from varnish.vcl but what code to use?
0
votes
0answers
12 views
phpmyadmin not working for same req.http.host, different req.url
I have got different backends for different req.url but the same http.host.
So, for instance: example.com/one goes to one backend, example.com/two, to another. The websites themselves work fine. The ...
0
votes
2answers
49 views
Is it a good way to generate static page for dynamic content in a large website and how to manage the static page properly
I have a website with millions of pages. The content on the page stored in database but the data is not changed very frequently. so for the sake of improving the performance of the wesite and reducing ...
0
votes
1answer
66 views
Too many redirect nginx and varnish
I'm using varnish cache server with nginx. I tried to redirect from http to https. I wrote config for redirecting http to https in varnish server.
default.vcl
sub vcl_recv {
if (client.ip != "...
0
votes
1answer
45 views
Varnish panic - Log abandoned (vsl)
Trying to set up varnish but I'm getting a lot of panic state from it, and can't figure out why and how to fix it.
OS : Debian 9
Varnish version : tried with 5.1, 6 & weekly , same behavior
...
0
votes
1answer
31 views
How to achieve this behaviour with Varnish vcl language (directors dictionary by key)
I have tried everything I could think of, nothing worked, here what I need to do:
I have a rather complex application that relies on a list of "nodes" that are able to serve content depending on the ...
0
votes
0answers
11 views
Magento 1.8 and varnish cache 4.0.5 get 404 product page issue randomly
I have used varnish cache for awhile on my Magento 1.8. It worked well for a long time until now I'm having an issue that some product URL got 404 error. It's randomly, not specify any product. And ...
1
vote
0answers
30 views
Asp.Net ViewState behind CDN
I have an Asp.Net app running under IIS with two backend servers with Loadbalancing + machinekey configured. Once I've activated a CDN (Varnish with caching disabled), I'm redirected to login page ...
0
votes
2answers
24 views
Name or service not known error Varnish 5.2
I have two web servers"for lab purpose ", they have the same web page. I also installed varnish to do round_robin and other kind of balance methods.
But when I put the whole address of my web ...
0
votes
2answers
22 views
Is this a varnish hit?
I am having an issue with Varnish installed with Magento 2, I have followed this tutorial https://slack-redir.net/link?url=https%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fhow-to-speed-up-apache-with-...
0
votes
1answer
47 views
Accessing the body of the backend response in Varnish VCL
My Varnish VCL code needs to make a simple GET request into a backend system and decide if the requested resource is accessible or not. Unfortunately, the backend system always returns 200, and I ...
0
votes
1answer
9 views
How to display the original page cache when there is a query parameter?
I think I solved the first part where it shouldn't cache pages with query parameters using
if ( bereq.url ~ "/\?.*$" ){
set beresp.uncacheable = true;
set beresp.ttl = 120s;
return (...
0
votes
1answer
46 views
Installing Varnish on port 8080 breaks local environment
I am having trouble installing Varnish on my local environment, I amusing ubuntu and apache 2, I need to install this for Magento 2 purposes, so I followed this tutorial, https://www.digitalocean.com/...
0
votes
1answer
33 views
Varnish configuration with virtual hosts on Centos 7 / directadmin
I'm running CentOs 7 with DirectAdmin. I have created some users with websites. This works fine on httpd. But after installing Varnish, I get the notification "Apache is functioning normally".
How ...
-1
votes
1answer
39 views
Varnish causes user to log off right after the login
We setup two web servers with Apache 2.4, php 7.0.32 and Magento 2.1 with Varnish 4.x version and one MySQL database, Apache is listening on port 8080 and Varnish on port 80, web servers are able to ...
0
votes
1answer
94 views
Varnish and WordPress, it is possible real caching without external plugin?
Maybe it sounds a novice question in Varnish Cache world, but why in WordPress it seems that is a need to install a external cache plugin, to working fully cached?
Websites are correctly loaded via ...
0
votes
0answers
23 views
Varnish Always Return Quickly on Miss and Fetch in the Background
I am trying to determine if there is a way to always fetch from the backend in the background using Varnish. It is OK to return misses to the client in my use case. The behavior that I would like is:
...
0
votes
1answer
162 views
How Install NGINX + Varnish 6.1.0 with SSL on Ubuntu 18.04???
I'm using VPS in Digital Ocean and I wanna install varnish 6.1.0 with SSL + NGINX in Ubuntu 18.04 and install PHP 7.2
But I don't know if this Varnish version is compatible with ubuntu 18.04 version ...