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

learn more… | top users | synonyms

0
votes
1answer
152 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
93 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 = "my.server.ip";...
0
votes
1answer
74 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
110 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
178 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
121 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
136 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
94 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
100 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
109 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 updated(...
0
votes
0answers
60 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 rate)....
0
votes
1answer
233 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
31 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, s-...
1
vote
2answers
520 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
169 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
251 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
1answer
201 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 webserver02(172.31....
0
votes
1answer
119 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
1answer
263 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 ...
1
vote
0answers
178 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
227 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
42 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
4answers
525 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 ...
1
vote
1answer
486 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
472 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
52 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
143 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
251 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 => Play:...
1
vote
0answers
408 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
148 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
333 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: PHPSESSID=...
0
votes
1answer
206 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
491 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 ... [root@...
3
votes
1answer
521 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 ...
1
vote
0answers
134 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
44 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
1answer
127 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 ...
1
vote
2answers
129 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
862 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 https://www.example....
0
votes
1answer
65 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 <h2>...
0
votes
1answer
182 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: php5-...
1
vote
2answers
691 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 load-...
0
votes
2answers
275 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
609 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
260 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 ...
4
votes
2answers
2k 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 resp.http....
1
vote
1answer
193 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
863 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
167 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 ...
2
votes
1answer
84 views

Incremental Subdomain Brute forcing?

Currently looking after a small varnish/nginx webserver group sitting behind an AWS ELB. Monitoring of the primary domain recently picked up a huge number of hits to non-existent sub-domain ...