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

learn more… | top users | synonyms

1
vote
1answer
96 views

Varnish 4.1 segfault in Docker

I'm trying to use Varnish 4.1 with Docker (1.9.1). I've built a docker image in Alpine Linux 3.2 with its musl-libc to reduce the image size. Dockerfile: FROM alpine:3.2 ​ RUN echo ...
0
votes
1answer
34 views

Varnish Error Log Files

I upgraded to version 4.1 from 4.0 and everything was working fine until I restarted the service and it shows Starting or Started, but when I check the status or go to a website the services shows ...
0
votes
2answers
182 views

Varnish 4.1 Stopped After Restart and Won't Stay Started

I upgraded from Varnish 4.0 to 4.1, had one minor issue at the beginning and fixed that and was up and running. I needed to clear the cache and when I restarted Varnish it said "Starting", but when ...
0
votes
1answer
308 views

Nginx SSL + Varnish + Nginx HTTP server, .css and .js files URL's are getting rewritten to http

I am using Nginx as an SSL terminator that serves requests to Varnish, and then Varnish passes the cached data to Another Nginx Vhost. Everything works well so far, but for some reason, only .css and ...
0
votes
0answers
81 views

Nginx Cache alterntive where two requests can populate large cache files simultaneously?

I am using Nginx as a caching reverse proxy for large files. It is important to me that the origin server does not have to output more bandwidth than necessary. So if the download of the file gets ...
-1
votes
1answer
66 views

What's the best way to cache a website on nginx server with SSL?

I have a wordpress blog which runs using nginx (SSL) + PHP-FPM + MySQL. I wondered what was the best way to cache this kind of site. I heard that Pound and Varnish do that well, but I haven't found ...
0
votes
0answers
22 views

Varnish ESI Streaming Response - Is it possible NOT to stream the response

We use Varnish (4) in front of an application which contains a few ESI blocks. What we are seeing (as expected) is that varnish streams the response from the server as soon as our backend responds to ...
-1
votes
1answer
85 views

Varnish 3.0.7 suddenly stopped working

Changed one line in default.vcl and after that I couldn't restart. It didn't give me any error or anything. I tried to set it back to the former config but that didn't help. So I decided to reboot. ...
0
votes
0answers
49 views

Nginx (SSL) -> Varnish -> Apache upstream load balancing/ failsafe

I want to setup the following infratructure: Nginx as ssl terminator/ load balancer in front of a Varnish cache which itself uses Apache backends. Now I want to load balance the traffic in the ...
1
vote
1answer
89 views

Caching large files transparently over HTTP

I have a rather peculiar server set up to work with: I have files stored on an HTTP accessible server (Windows Azure Storage - about 800gb of content) but must serve them to people from a different ...
1
vote
0answers
69 views

Varnish - behind, in front of, or instead of load balancer(HAProxy/nginx)

I intend to run a few tiny ARM "physical cloud" servers behind a load balancer(either HAProxy or nginx itself), but i can't decide where to put Varnish in the whole mess. I can either have it on each ...
1
vote
0answers
50 views

varnishlog accessing POST body (varnish 4.x)

running varnishd (varnish-4.1.0 revision 3041728), and logging using varnishlog -q "BerespStatus >= 500" I would like to know, if is possible to print POST content. There is XML-RPC service ...
0
votes
0answers
60 views

Dynamically modifying weight of a backend on Varnish

I have Varnish configured as a load balancer with 3 app backends using the hash director: director app hash { { .backend = instance1; .weight= 1; } { .backend = instance2; .weight= 1; } { ...
0
votes
1answer
98 views

Starting Varnish in a Docker Container fails for Unknown Reason

I'm trying to get Varnish to run in a container, and I'm running into a weird issue. Things work fine if I log in, and then execute from a command line, but when I try to run it, using the same ...
0
votes
0answers
24 views

Varnishncsa truncated referer

I have a question concerning varnish and varnishncsa. In fact I've set up varnishncsa to log requests with this log format : LOG_FORMAT="%{X-Forwarded-For}i %l %u %t \"%r\" %s %b \"%{Referer}i\" ...
1
vote
1answer
125 views

Configuring Varnish 4 VCL to Cache Only a Specific Page for Anonymous Users (with Django)

I'm using Django with Varnish 4. I'm trying to achieve that: If the request is not for the home page, pass (I'm trying to only cache the home page at the moment to test it, etc.) If the cookie ...
0
votes
0answers
61 views

Redirecting non-www to WWW varnish 3

Hello I'm trying to force all connections to use a single URL for all non resources (Js, css etc) I'm using Pound (:443) -> Varnish 3 (:80) -> Windows Web Server and have configured the redirect to ...
0
votes
1answer
11 views

Varnish3 - how many clients causes 1 backend fetch? (antidogpile)

When varnish cache is empty and I got X client requests for the same asset - Varnish gathers the clients and issues 1 backend fetch. Do you know if there's possibility to control how many requests ...
0
votes
0answers
14 views

What is the meaning of a 'completed' ban in Varnish?

In Varnish (4.1), what does it mean when a ban is marked 'completed' versus when it is marked 'deleted'?
0
votes
1answer
56 views

Pound, HTTPs and Varnish

I'm configuring a proxy, and trying to workout how to use a SSL Cert for Pound. Or whether its even needed? At this stage the proxy simply points to the web server - we are likely to need more web ...
0
votes
0answers
16 views

Apache + varnish freezes

So the problem is that whenever I run a long running script if it goes over 60 seconds apache virtualhost freezes. Other virtualhosts runs fine, varnish is serving content too, but when I'm under ...
1
vote
1answer
95 views

Varnish removes $HTTP_HOST

I have an issue with varnish, wich removes HTTP_HOST variable. My setup is nginx ->(1 from 5 server with:) varnish -> local nginx -> php5-fpm. I'm running several sites, but without Host it just ...
1
vote
0answers
42 views

Varnish - how to parse StatSess lines from varnishlog

I'm trying to analyze the output of varnishlog, but I'm having trouble finding a good reference on what data is presented by the individual tags - in particular, I'm insteresed in the StatSess tag, as ...
0
votes
1answer
36 views

In Varnish 4.0, is there any way to tell if a Purge request Hits or Misses?

Looking at the logs, I don't see any difference between a Purge HIT and a Purge MISS. Neither are there any longer any apparent hooks for this in the VCL. Is there a way to tell if Varnish 4 Purges ...
0
votes
0answers
10 views

For a purge request, is 'host' required?

Using purge in Varnish 4. The documentation and examples that I've seen all include 'host: XXX' as content of the request. Is that a required parameter?
0
votes
0answers
148 views

Magento and Varnish 4

I have varnish setup behind Nginx (SSL offloading) going to a backend server running Apache and Magento (turpentine module). I can see from Varnishstat that there are requests going to the varnish ...
1
vote
1answer
242 views

Backend fetch failed - varnish wont fetch drupal backend

I run a drupal 7 application(3backends) and i have 3 varnish servers continuously denying to fetch backend. I have read many similar error here but still cant solve my problem, throwing 503 varnish ...
-1
votes
1answer
70 views

apache processes taking 100% of CPU

i have a 4 GB virtual server that i'm hosting a rugby website and since it's a rugby world cup season my site is receiving a good amount of traf fic , not too much that it exceeds my server limit ...
0
votes
0answers
35 views

Overriding Expires Header, Using Varnish

Im using a web host (No admin access), and a Varnish proxy (Admin Access) to speed up the slow responses from the hosted server. Is working well, but have run into some issues with WordPress sites. ...
0
votes
0answers
74 views

Varnish CSRF protection token doesn't work

I have a symfony2 based site with a form and captcha in it. When I access the site directly the contact token remains the same. When I access it through varnish it gets updated every time I hit F5. ...
-1
votes
2answers
98 views

Varnish/Traffic-Server https caching support

I know that Varnish does not cache's https connections. Does apache traffic server caches https? If no, is there a way to configure apache + Varnish + wordpress to cache https?
3
votes
0answers
208 views

Varnish cache objects expiring while in stale-while-revalidate grace period

I have added Varnish 4.0 to a CentOS 6 server running cPanel to cache a website I have developed. I am trying to implement stale-while-revalidate to ensure that all users are served a cached version ...
1
vote
0answers
45 views

varnish ignore haproxy session affinity cookie

I have HAproxy behind varnish and I need use session affinity based on cookies. In default configuration, varnish doesn't cache content when the cookie is present. Anyone knows, how to tell varnish ...
0
votes
1answer
290 views

How to disable varnish on apache2 with ubuntu?

I installed and setted up varnish using this guide Basically, I changed the port to 8080, I want to disable varnish, so I thought I will change back to port 80 and thats it, varnish it's listening ...
1
vote
1answer
294 views

Can Varnish ignore hit-for-pass when backends are sick

Is there a way to have Varnish 4 ignore any hit-for-pass objects in the cache if all backends have been marked as "sick"? Here's the failure scenario I'm trying to improve: At first backends are ...
1
vote
1answer
442 views

Varnish with separate backends and multiple domains on each backend

I'm using 3 nginx servers with multiple domains(sites) on each. Each server contains multiple Wordpress sites. Is it possible to configure Varnish and use separate backends (different IP's) and each ...
0
votes
0answers
47 views

Different caches based on cookie for same URL on Varnish

I have a PHP code that returns different output based on a request cookie value. When Varnish is disabled all works great, but with Varnish the cached page is one only and doesn't respect the ...
1
vote
1answer
85 views

How can I view n_lru_nuked in varnish 3.0.5?

I'm trying to monitor varnish cache evictions and can't seem to find out how to view the n_lru_nuked counter on varnish 3.0.5. varnishstat isn't finding the counter: $ varnishstat -f ...
0
votes
0answers
25 views

How can I configure Varnish (and Nginx, if possible) to use a dynamic cache key?

Some of my clients use Varnish for caching on their sites, while others rely on Nginx. Due to the fact that their sites must be highly dynamic, yet quick to load, I need to configure both systems ...
1
vote
1answer
50 views

varnish configuration with apache domains

I have istalled Varnish on Debian. I have a website running on Apache on http://example.com Here's my /etc/varnish/default vcl 4.0; backend default { .host = "example.com"; .port = "8080"; ...
2
votes
0answers
35 views

Varnish failing intermittently for no obvious reason

For the last few years we have been running Varnish as a cache and load balancer in front of several apache servers serving several thousand websites. We also use monit to ensure that if varnish ...
0
votes
1answer
204 views

How to failover if Varnish is between HAProxy and Apache

I am thinking about putting Varnish inbetween HAProxy and Apache. That is working, however with Varnish inbetween HAProxy is monitoring Varnish. If Apache goes down it will not failover to the other ...
0
votes
1answer
38 views

Extract Configuration From a Running Varnish Instance

Is there a way to extract a vcl configuration file from a running instance of varnish? That is, I'm debugging varnish on a system I haven't been involved with up until now. There's a lot of ...
1
vote
1answer
75 views

turn off gzip encoding for site in varnish config

I am attempting to turn off the gzip encoding for a specific website which is backed by a load balancer in order for some developers to troubleshoot something. I have already adjusted the apache ...
0
votes
0answers
70 views

Restrict varnish purge requests to wordpress logged in users

I need to restrict varnish purge requests to wordpress logged in users, so that when one user updates a post or page, the purge request sent to varnish can take effect. I have debian, apache2, varnish ...
0
votes
1answer
144 views

Elastic Beanstalk purging Varnish across instances

I’m a little stuck with how best to clear Varnish across all my instances on Elastic Beanstalk - unfortunately I’m not most knowledgeable with AWS. I would like to keep things simple regarding the ...
0
votes
0answers
89 views

Varnish throwing 503 error for remote backend

I have a backend that is in a different DC to Varnish, and I need to serve content from it during a migration. We've done this before with no problems. backend my_backend { .host = ...
0
votes
1answer
67 views

Varnish GeoIP (vmod_geoip) + Amazon Linux

I'm trying to install vmod_geoip via amazon linux, but so far no luck. I've installed geoip geoip-devel. I've downloaded the vmod_geoip source. I'm able to ./autogen.sh but ./configure constantly ...
0
votes
0answers
109 views

varnish 4 not caching properly

After updating the debian server from wheezy to jessie, I found that varnish didn't work any more, it was because of the changes from varnish 3 to 4. I managed to get varnish loading and working, but ...
0
votes
0answers
158 views

Apache 2.4 with Varnish 4 : Incorrect Port Forward

I installed Varnish 4 on top of Apache 2.4, in Ubuntu 14.04. The issue, similar to one happened in Nginx, old version of Varnish/Apache (more cases), forwards URL without trailing slash to port 8080, ...