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

learn more… | top users | synonyms

0
votes
0answers
9 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
59 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
8 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
108 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
0answers
20 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 ...
-1
votes
0answers
12 views

nginx+varnish+apache on ubuntu

NGINX: 80/443 VARNISH: 8081 Apache: 8080 Here is the configuration: NGINX: /etc/nginx/sites-enabled/default upstream varnish { server 127.0.0.1:8081; } limit_req_zone $binary_remote_addr ...
0
votes
1answer
61 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
30 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 ...
-1
votes
0answers
14 views

varnish: does cache .png but no .htm

Question is: why is the .png being cached but not the .htm file? I did a lot of reading and testing in Varnish, but still have an unsolved mistery. CentOs 6.5, DirectAdmin, multiple hosts on a vps. ...
0
votes
0answers
24 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
45 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
14 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
21 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
44 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 ...
-1
votes
0answers
24 views

Varnish with Monit

Varnish with Monit want to monitor and when something happens to Varnish being able to automatically restart everything. For it to come back up. Try to follow the tutorial from any web page and ...
2
votes
1answer
57 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
26 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
28 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
65 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
91 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
109 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
30 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
55 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
87 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
7 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
124 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
35 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
115 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
94 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
145 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
106 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 ...
1
vote
0answers
36 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
42 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
70 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
26 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
49 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
50 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
35 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
36 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
308 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
27 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
101 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
161 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 ...
0
votes
2answers
149 views

OPcache breaks phpBB registration

I don't know what happended, but whenever a user tries to register himself on one of my phpBB forums nginx throws 502 Bad gateway, but if I disable OPcache everything works fine. This is the error ...
0
votes
1answer
142 views

Varnish doesn't work with session on PHP

I have got varnish installed on my server. I have a page on my site which i would like to get cached via Varnish. With fresh varnish installation, I created a PHP page with some content in it. loaded ...
0
votes
1answer
70 views

Use Varnish cache for one domain and not other domain on same server

I got varnish installed on my server and made following changes for varnish cache to work. Changes in httpd.conf : Listen changed from 80 => 8080 NameVirtualHost from *80 => *8080 The content of ...
1
vote
1answer
332 views

Change varnish 4 503 error

How can i change varnish 503 error? How can i customize it ? i'm using varnish v 4 it's now work sub vcl_synth { set resp.http.Content-Type = "text/html; charset=utf-8"; set ...
0
votes
0answers
70 views

Apache's mod_dir keeps redirecting to wrong Port

I have a setup with a HAProxy in front of a Varnish cache who requests an Apache2 server. The Apache is listening on an internal IP on Port 12345 and is configured with UseCanonicalPhysicalPort Off ...
7
votes
3answers
227 views

Getting 503 error from Varnish but varnishlog doesn't tell much

Running Varnish 4 and I'm occasionally getting 503 errors which I can't put my finger in. I've tried curling the backend directly and it's returning a response everytime so it doesn't look like the ...
0
votes
1answer
71 views

Varnish Issues - Not listening on 127.0.0.1 and certain pages returning 404

Have varnish running but it will only work if I use the IP address of the server in default.vcl instead of 127.0.0.1. backend default { .host = "xxx.xxx.xxx.xxx"; .port = "82"; } Certain ...