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

learn more… | top users | synonyms

1
vote
0answers
4 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
6 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
16 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
15 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
14 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
20 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
26 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
44 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
35 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
23 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
37 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
25 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
23 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, ...
0
votes
2answers
50 views

Apache 2.2 + Varnish not listening to 8080 port

I'm running apache 2.2 with multiple VirtualHosts and varnish cache on Centos 6.6. The problem is I can't get this to work. httpd.conf: Listen 8080 NameVirtualHost *:8080 <VirtualHost *:8080> ...
0
votes
0answers
37 views

Varnish configuration with Apache webserver in AWS ec2 free tier

I have AWS ec2 free tier where i have deployed my sample. I have configured the webserver to listen on 80 port. I am able to access the application by the below URL http://X.X.X.X/SampleApp But ...
-3
votes
2answers
37 views

Can Varnish be deployed to front end mariadb/mysql server pool? Or is varnish helpful only when frontending HTTP servers?

Can Varnish be used to front end a pool of mariadb/mysql servers? I see that it does not handle any non-http requests and gives 503 error.
1
vote
1answer
38 views

Set up public facing reverse proxy for a specific server

At my work place, we have run out of available IP addresses to assign to our public facing UAT server. Because of this, we route all traffic to port 80 on our UAT server from port 9999 on another ...
3
votes
0answers
53 views

Optimal server stack for Wordpress [closed]

There are numerous tutorials/articles(some even with benchmarks) on how to create an optimized stack to run Wordpress(or any dynamic site, for that matter). The site doesn't get frequently ...
0
votes
0answers
25 views

varnish flexible rate limit by api token

I have a REST API requires authentication via OAuth tokens. The tokens have different rate limits (10k, 100k, 1M, unlimited). I currently used for Node.JS with Expressjs and middleware (express ...
0
votes
1answer
96 views

haproxy-varnish can't reach 6k requests

Issue I can't reach 6k requests/seconds. I get a lot of timeouts. My response time goes as high as 26 seconds. Intro I am setting up a server that will host a 100MB static-website. The thing is ...
0
votes
1answer
15 views

Varnish 4 Ignoring Ban List

I am attempting to manage cache invalidation by using cache tags in a header field called X-Cache-Tags. The relevant headers from a typical response look like this: Age:218 Cache-Control:public, ...
1
vote
2answers
241 views

NGINX HTTPS Reverse Proxy - Fast TTFB but low concurrency

I've got an application that runs: NGINX (SSL) => VARNISH (CACHE) => APACHE/PHP. Running ab benchmark, I'm able to achieve 30k+ requests / second on varnish layer (via HTTP) via a EC2 t2.small ...
0
votes
1answer
42 views

Set custom header to hash key in Varnish

I want to see which request gets which hash key (req.hash in older versions, or setting the hash key using hash_data()), but I can't find any documentation about how to read it in Version 4.0. How do ...
0
votes
1answer
103 views

How Can I Have Apache & Nginx both behind Varnish?

I have a setup where I have Varnish listening on Port 80 behind Apache on Port 8080 while I intend having Nginx on 8081. My vps' control panel supports only Apache but I want to test one of the sites ...
0
votes
0answers
52 views

Varnish keeps caching css and js even after I've set it not to in vcl_recv

In my default.vcl I have the following: if (req.url ~ "\.(js|css|jpg|jpeg|png|gif|ico|tiff|tif|bmp|svg)$") { return (pass); } All the types aren't cached, as I've request, but all ...
0
votes
1answer
66 views

What is Refs column on varnishadm backend.list command?

Below is a command output example: varnish> backend.list 200 Backend name Refs Admin Probe webserver01(172.31.30.167,,80) 7 probe Healthy 6/6 ...
0
votes
1answer
31 views

Serve contents based on language with Varnish

My website has multiple languages. English is default language with url: http://domain.com/ (http://domain.com/en). When users want to use different language, they will click on the language button. ...
0
votes
0answers
45 views

Filtering varnishlog v4

I'm trying to filter varnishlog (version 4) to only show requests to certain URLs or certain IP addresses. All of the examples online are for version 3. Version 4 seems to use a different method of ...
0
votes
0answers
84 views

Error 499: Varnish is working how load balance Nginx Webservers

I created a solution to host a magento store with high traffic (> 500 user simultaneously) on AWS. Too often HTTP 499 error appears in the access.log the Varnish. When this happens users who have such ...
2
votes
1answer
94 views

HAProxy/Varnish: redirecting a percentage of traffic

I'm trying to measure separate statistics for two different versions of a web page. So I need to redirect a certain percentage of my web traffic to a different page than the one requested (i.e. 20% of ...
0
votes
2answers
29 views

Varnish: Cache all content until a certain date?

Is there a way I can configure Varnish to store everything under a certain path until a date that I set? My site updates once a month, so I'd simply like to serve cached content until then.
0
votes
0answers
31 views

Caching cookies with Varnish 4

I want to be able to cache pages that have a cookie. Let's say I have a cookie called "testcookie". If testcookie = 1 I want a page (cached), if testcookie = 2 it will have a different page ( i want ...
0
votes
4answers
119 views

Varnish 4 not caching

I am new at working with varnish. I installed it, I think i configured it correctly. In order to test this is what i did: I created a test page that only has the string "test". I went to the page ...
0
votes
1answer
224 views

Moving a web application to use HAProxy, Varnish, and nginx

I currently have 4 web application servers (running on application) on Rackspace that sit behind a Load Balancer (on Rackspace). In front of the Load Balancer. The application itself makes moderate ...
3
votes
2answers
140 views

Varnish with MediaWiki not caching

I'm trying to use varnish cache to cache a mediawiki page for logged in users. I use ubuntu 14.04, varnish 4.0.3 (port 80) and nginx as a webserver (port 8080). As a vcl I copied the configuration ...
1
vote
1answer
39 views

Varnish, setup to use 80% of the my disk space

I just want to validate my setup of using Varnish. I have dedicated machine with 500 GB, disk space and my objects that I am going to cache are going to be huge (~ 500 MB) in size each. I am going ...
0
votes
2answers
72 views

basic varnish 4.0 setup doesn't seem to work

[Apparently I was running varnishd as root] Now, I get this: [gideon@mywebsite ~]$ sudo varnishd -f /etc/varnish/default.vcl -s malloc,128m -T 127.0.0.1:2000 -a 0.0.0.0:8000 -d [sudo] password for ...
1
vote
0answers
132 views

Varnish keeps getting MISS when Nginx is backend server

I am experiencing a really weird situation where Varnish works fine with hitting directly to application server (Play server), but not working with Nginx as web sever. Working: Varnish:6081 => ...
0
votes
0answers
11 views

varnish - little delay after 5 seconds

I installed varnish on a hello world application, along with nginx, hhvm and mongodb. The only things that bugges me is that the first time when I access the url I get around 125 ms response time and ...
0
votes
0answers
167 views

Nginx Varnish 4.0 SSL Wordpress configuration redirects mydomain.tld to https://127.0.0.1

I have the following stack: (redirect http to https =>) https nginx -> varnish -> nginx http -> php5-fpm When I open my.url.com I get instantly redirected to https://127.0.0.1 Without varnish, ...
3
votes
1answer
48 views

Adding varnish causes IIS to slow down with less traffic?

We are trying to put varnish in front of our IIS 7.5 farm. Said farm handles 3 websites (SiteA, B and C) - varnish is going in front of A only. When we add varnish, we get a 75-90% hit ratio but our ...
2
votes
1answer
172 views

Varnish not caching website which have session

I tried curl -I domainname and here is the response. HTTP/1.1 200 OK Date: Tue, 21 Apr 2015 14:49:09 GMT Server: Apache/2.2.15 (CentOS) X-Powered-By: PHP/5.3.3 Set-Cookie: ...
0
votes
1answer
122 views

nginx or haproxy or varnish Multiple IP addresses, reverse proxy AND manual failover

Ok, so here is all that I'm trying to accomplish. Back Ground I have multiple IIS web servers, each running multiple web sites each with their own IP address. Each IIS "Web Site" through programming ...
0
votes
1answer
218 views

Cannot install Varnish 3.x on CentOs 7

I have a freshly installed Centos7 and I wish to install Varnish 3.0; according with https://www.varnish-cache.org/installation/redhat I have installed the repo varnish-3.0.el6.rpm but ... ...
0
votes
0answers
156 views

RedHat 6.6, Apache 2.2.15 and Varnish 4.0.3: Status Code 403 Forbidden on HTTPS/SSL configuration

I'm trying to configure Varnish to work with my SSL Apache configuration. Here's an extract of my httpd.conf file: Listen 8080 ExtendedStatus On NameVirtualHost 192.168.xxx.123:8080 Then I have ...
3
votes
1answer
65 views

Set default TTL in Varnish 4.0?

I am new to Varnish, and I am running v4.0 on Debian Wheezy. I would like to set a default TTL across my cache of 4 weeks (very static content). From reading the docs I think the answer is to set ...
0
votes
0answers
61 views

Varnish thrown 400 Bad Request nginx

Have two version of site e.g one is for india region i.e www.abc.com and another one is for US region i.e us.abc.com. From india if we try to access www.abc.com through OperaMini user agent site will ...
1
vote
0answers
88 views

Nginx proxy_cache / Varnish - parallel requests trigger multiple requests to backend?

I am looking for a HTTP reverse proxy that will handle HTTP live streaming use cases in a performant manner. Assume file/fragment sizes up to 4MB with a constant load of client requests for the same ...
1
vote
1answer
28 views

Short-circuit Varnish methods without skipping built-in methods

While configuring Varnish 4, I'm interested in short-circuiting inside vcl_recv, but I don't want to skip the builtin.vcl (née default.vcl) VCL logic. For example, given this VCL pseudocode: sub ...
0
votes
0answers
61 views

Varnish not probing backend for 302 correctly

I have a Varnish 3.0.6 server here that I'm using to cache some backend IIS servers. In order to monitor our application, I'm using a url that logs into our product, which gives a good indication that ...