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

learn more… | top users | synonyms

0
votes
0answers
14 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
30 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
9 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 ...
-2
votes
0answers
11 views

Varnish + nginx + WPTouch

I'm trying to get wp-touch pro to play nice with varnish. They work together with the default.vcl below. But for some reason varnish caches admin and login pages, making it impossible to save ...
0
votes
0answers
10 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
29 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
26 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
32 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.
0
votes
1answer
26 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
47 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
17 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
87 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
14 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
194 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
35 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
86 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
49 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
0answers
26 views

Pound proxy timeout error

I have a timeout problem with Pound proxy and load balancer. I have a pound -> varnish -> nginx server chain, I am using pound to handle the ssl certification. Every ~10% of the requests runs ...
0
votes
1answer
60 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
26 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
35 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
64 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
81 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
28 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
30 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
94 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
178 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 ...
2
votes
2answers
126 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
36 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
67 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
118 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
9 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
147 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
43 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
152 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
112 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
187 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
138 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 ...
2
votes
0answers
46 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
51 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
82 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
54 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 ...
0
votes
1answer
59 views

Varnish, some url's redirecting to :8080 in phpbb?

I'm using a LEMP server with Varnish so nginx is on :8080 and varnish is cached on :80. The mail site works brilliant, no redirects etc but in a sub folder I have a phpBB forum installed, some of the ...
0
votes
0answers
38 views

How to delete redirect ip to domain in varnish

Sorry for my English, I don't speak English very well. So, my problem is that when I put my IP address in a web browser, varnish will redirect it automatically into my domain name. But if I do the ...
1
vote
1answer
44 views

Can a Varnish director be queried for the number of healthy backends it contains?

Specifically in Varnish 3, is there a way to check if a director has any healthy backends? My use case is that I have a load balancer that is distributing traffic to 2 varnish boxes, which in turn ...
3
votes
2answers
374 views

nginx > varnish > hhvm

I have nginx on the front end interpreting ssl and redirecting all non https traffic to https: server { listen 80; server_name example.com www.example.com; return 301 ...
0
votes
1answer
33 views

Enable OPTIONS command in Varnish 4

Does anybody know the specific configuration directives for Varnish 4 which can enable this? If I do: curl -v 'http://SERVER/nps.json' -X OPTIONS Right now for my varnish I get back ...
0
votes
1answer
107 views

NGINX, PHP5-FPM, Varnish. WP-Admin becomes unresponsive after a while

wp-admin becomes unresponsive after like 10 hours of not being logged in. In order to get it working i need to restart php5-fpm. I'm using NGINX with PHP5-FPM and Varnish. This is my settings: ...
1
vote
2answers
237 views

Varnish vcl_fetch does not work

I'm new to configuring varnish. I am trying to replicate a varnish setup I made on AWS onto another server. Here's the scenario: I have 2 servers serving web content (Web1 and Web2), which is a ...